Valaciclovir is an antiviral medication used to treat outbreaks of herpes simplex or herpes zoster. 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.