Oseltamivir, commonly known by its brand name Tamiflu, is an antiviral medication used to treat and prevent influenza A and B. It is a neuraminidase inhibitor that works by blocking the function of the viral neuraminidase protein, thereby preventing the virus from spreading within the body.