Trimethoprim is an inhibitor of the enzyme dihyrofolate reductase. Because it inhibits the enzyme, tetrahydrolate cannot be regenerated and de novo synthesis of thymidine is stopped.