Trimethoprimis a bacteriostatic antibiotic used mainly in the prophylaxis and treatment of urinary tract infections. It belongs to the class of chemotherapeutic agents known as dihydrofolate reductase inhibitors. Trimethoprim binds to dihydrofolate reductase and inhibits the reduction of dihydrofolic acid (DHF) to tetrahydrofolic acid (THF). THF is an essential precursor in the thymidine synthesis pathway and interference with this pathway inhibits bacterial DNA synthesis. Trimethoprim's affinity for bacterial dihydrofolate reductase is several thousand times greater than its affinity for human dihydrofolate reductase. Sulfamethoxazole inhibits dihydrofolate synthetase (aka dihydropteroate synthetase), an enzyme involved further upstream in the same pathway. Trimethoprim and sulfamethoxazole are commonly used in combination due to their synergistic effects.