Valacyclovir, available under the brand name Valtrex, is a prescription oral antiviral medication used to treat infections caused by the herpes virus family, including herpes simplex (cold sores and genital herpes) and varicella-zoster (shingles and chickenpox). It does not cure these infections but helps manage symptoms and reduces the frequency of outbreaks.