Other than treating urinary tract infections, Trimethoprim is sometimes used to treat skin and soft tissue infections, Staph infections, certain forms of traveler’s diarrhea, and for the routine prevention of infection in immunocompromised patients.