Sulfamethoxazole is a sulfonamide antibiotic used to treat a variety of bacterial infections. It works by inhibiting the synthesis of dihydrofolic acid, a critical precursor in the biosynthesis of nucleotides, which are essential for bacterial growth and replication.