Allylamines are a class of antifungal agents that inhibit the enzyme squalene epoxidase, disrupting the fungal cell membrane synthesis. They are primarily used to treat dermatophyte infections such as athlete's foot and ringworm, with terbinafine being a widely used example.