Acyclovir is an antiviral medication commonly used to treat herpes simplex virus infections, including genital herpes and cold sores. It is also used in the treatment of varicella-zoster virus infections, such as chickenpox and shingles. Acyclovir works by inhibiting the replication of viral DNA, thereby reducing the viral load in the body.