Treatment depends on the type of pathogen involved. Bacterial infections are usually treated with antibiotics. Antiviral medications are used for viral infections, and antifungal agents are prescribed for fungal infections. Supportive care, such as oxygen therapy and intravenous fluids, may also be necessary.