👉 Trimethoprim is a class of antibiotics used primarily for treating bacterial infections, including urinary tract infections (UTIs). It belongs to the broad-spectrum antibiotic family and works by inhibiting the synthesis of cell wall components that are necessary for bacterial growth.