Valaciclovir, also spelled valacyclovir, is an antiviral medication used to treat outbreaks of herpes simplex or herpes zoster (shingles). It is also used to prevent cytomegalovirus following a kidney transplant in high risk cases. It is taken by mouth. Common side effects include headache and vomiting. Severe side effects may include kidney problems. Use in pregnancy appears to be safe. It is a prodrug, which works after being converted to aciclovir in a person's body.