Oseltamivir, commonly known by the brand name Tamiflu, is an antiviral medication used primarily to treat and prevent influenza types A and B. It is a neuraminidase inhibitor that prevents the virus from spreading within the body, thereby reducing the duration and severity of flu symptoms.