Ergosterol is a sterol present in fungal cell membrane. Inhibitors such as Allylamines (Amorolfin,Butenafine,Naftifine,Terbinafine), Azole antifungal drugs (except for abafungin) inhibit ergosterol biosynthesis.
Effective drug Natamycin binds directly to ergosterol to limit fungal growth.