Azoles are a class of synthetic antifungal agents used to treat a variety of fungal infections. They function by inhibiting the enzyme lanosterol 14α-demethylase, which is critical for the synthesis of ergosterol, an essential component of fungal cell membranes. Examples of azoles include fluconazole, itraconazole, and voriconazole.