Ganciclovir is an antiviral medication that inhibits viral DNA synthesis. Originally developed to treat CMV infections, especially in immunocompromised patients like those undergoing organ transplants or suffering from HIV/AIDS, ganciclovir acts by integrating into viral DNA and causing chain termination. This mechanism effectively stops the replication of the virus.