Oseltamivir, marketed under the trade name Tamiflu, is an antiviral medication used to treat influenza A and influenza B (flu), and to prevent flu after exposure.