The invention relates to compounds and methods for treating or preventing a viral infection, by administering a monophosphorylated prodrug of acyclovir or monophosphorylated derivative of an acyclovir prodrug to a subject suffering from or susceptible (to a viral infection, such as HIV infection.