Substances that treat systemic or topical infections caused by fungi. Antifungal agents kill or inhibit the growth of fungi, by various mechanisms. Mechanisms include inhibition of fungal mitosis, impairing synthesis or binding to ergosterol, incorporation into RNA or DNA synthesis inhibition.