The invention discloses the cyclopropanecarboxylcompound of purine analogue, preparation method and it is used for treatment herpesvirus infection and tumour. In one embodiment of the invention, the compound of the present invention can be used for treating cancer. Cancer patient can apply a kind of carrier before applying the compound of the present invention first, it may for example comprise the adenovirus vector of the DNA fragmentation of coding HSV thymidine kinases, the carrier express HSV thymidine kinases in the tumour cell of subject. On the other hand, the purposes the present invention relates to compound above-mentioned, its pharmaceutically acceptable salt, solvate, hydrate, pro-drug or metabolite in the drug of preparation treatment herpesvirus infection. The drug can be used for treating herpes simplex viral infections, herpes zoster infection or cytomegalovirus infection.