Sulfamethoxazole is a sulfonamide antibiotic that inhibits bacterial synthesis of dihydrofolic acid by competing with para-aminobenzoic acid (PABA). It is often used in combination with trimethoprim to treat various bacterial infections, including those of the urinary tract.