Bactrim is used to treat urinary tract infections, acute otitis media, bronchitis, Shigellosis, Pneumocystis pneumonia, traveler's diarrhea, methicillin-resistant staphylococcus aureus (MRSA), and other bacterial infections susceptible to this antibiotic.