Fungal diseases are caused by pathogenic fungi and can affect internal organs, subcutaneous tissues, skin, or hair. There are several classes of antifungal agents including synthetic acids and derivatives, pyrimidine and azole derivatives, allylamine derivatives, and antifungal antibiotics. Azole derivatives like clotrimazole and fluconazole are commonly used to treat fungal infections by inhibiting ergosterol biosynthesis. Allylamines like terbinafine also target ergosterol synthesis while polyene antibiotics such as amphotericin B and nystatin bind to fungal cell membranes causing loss of cell contents.