Oseltamivir is used in the treatment of the infection caused by the flu virus (influenza A and influenza B). Oseltamivir may also be used to prevent and treat swine influenza A.