This medication is a combination of two antibiotics: sulfamethoxazole and trimethoprim. It is used to treat a wide variety of bacterial infections (such as middle ear, urine, respiratory, and intestinal infections). It is also used to prevent and treat a certain type of pneumonia (pneumocystis-type).