Allylamines are a class of chemical compounds that are primarily used as antifungal agents. They interfere with the synthesis of ergosterol, an essential component of fungal cell membranes, leading to cell death. Commonly used allylamines include terbinafine and naftifine.