Oseltamivir, commonly known by its brand name Tamiflu, is an antiviral medication used to treat and prevent influenza A and B. It belongs to a class of drugs called neuraminidase inhibitors, which block the function of the viral neuraminidase protein, thereby inhibiting the release of new viral particles and limiting the spread of the virus within the body.