Antifungal agents work by targeting various components of the fungal cell. For instance, azoles inhibit the synthesis of _ergosterol_, an essential component of the fungal cell membrane, leading to cell death. Polyenes bind to ergosterol, creating pores in the cell membrane, which also results in cell death. Echinocandins inhibit the synthesis of _β-glucan_, a crucial component of the fungal cell wall.