A facile control of the acylation position at the primary hydroxyl and amino of acyclovir, respectively, was achieved and five polymerizable acyclovir prodrugs were synthesized. Various reaction conditions were studied in detail. Thus, lipase acrylic resin from Candida antarctica (CAL-B) in pyridine or acetone showed high chemo-selectivity toward the primary hydroxyl of acyclovir. However, lipase PS 'Amano' (PS) in DMSO selectively acylated the amino group. The selectivity of PS could be adjusted by changing reaction solvents. The acyclovir vinyl derivatives obtained would be important monomers used for the preparation of macromolecular nucleoside drugs.