Trimethoprim/sulfamethoxazole (Bactrim or Septra) is an older antibiotic that is most commonly used to treat urinary tract infections, except when resistance might be a problem. It is also being used more often now to treat methicillin-resistant staph aureus infections (MRSA).