CYP51-IN-20 (compound 5b) is an inhibitor of CYP51 and has antifungal activity. CYP51-IN-20 has a significant inhibitory effect on Candida albicans ATCC 10231, downregulates ERG11 ( Cyp51 ) gene expression, and significantly reduces the yeast-to-hyphae morphological transition. CYP51-IN-20 can synergize with Voriconazole to occupy the entire CYP51 binding site and exert a synergistic inhibitory effect in the Glechoma moth model.