Sulfamethoxazole is a synthetic bacteriostatic antibiotic. This antibiotic is effective against both gram-positive and gram-negative bacteria. Bacteria require folate for nucleic acid synthesis. Sulfamethoxazole inhibits the growth of bacteria by interfering with folate synthesis. Since sulfamethoxazole is a sulfonamide, it has low solubility in water.