Zanamivir is an antiviral medication primarily used for the treatment and prevention of influenza A and B. It belongs to a class of drugs known as neuraminidase inhibitors, which function by blocking the activity of the viral enzyme neuraminidase, thereby preventing the release of new viral particles from infected cells.