A major concern of immunocompromised patients, in particular those with AIDS, is susceptibility to infection caused by opportunistic pathogens such as Pneumocystis jirovecii, which is a leading cause of pneumonia in immunocompromised patients. We report the first kinetic and structural data for 2,4-diamino-6-[(2=,5=-dichloro anilino)methyl]pyrido[2,3-d]pyrimidine (OAAG324), a potent inhibitor of dihydrofolate reductase (DHFR) from P. jirovecii (pjDHFR), and also for trimethoprim (TMP) and methotrexate (MTX) with pjDHFR, Pneumocystis carinii DHFR (pcDHFR), and human DHFR (hDHFR). OAAG324 shows a 9.0-fold selectivity for pjDHFR (K i , 2.7 nM) compared to its selectivity for hDHFR (K i , 24.4 nM), whereas there is only a 2.3-fold selectivity for pcDHFR (K i , 6.3 nM). In order to understand the determinants of inhibitory potency, active-site mutations of pj-, pc-, and hDHFR were explored to make these enzymes more like each other. The most unexpected observations were that the variant pcDHFR forms with K37Q and K37Q/F69N mutations, which made the enzyme more like the human form, also made these enzymes more sensitive to the inhibitory activity of OAAG324, with K i values of 0.26 and 0.71 nM, respectively. A similar gain in sensitivity was also observed for the hDHFR N64F variant, which showed a lower K i value (0.58 nM) than native hDHFR, pcDHFR, or pjDHFR. Structural data are reported for complexes of OAAG324 with hDHFR and its Q35K and Q35S/N64F variants and for the complex of the K37S/F69N variant of pcDHFR with TMP. These results provide useful insight into the role of these residues in the optimization of highly selective inhibitors of DHFR against the opportunistic pathogen P. jirovecii.