Terbinafine is an allylamine antifungal that works by inhibiting squalene epoxidase, an enzyme involved in fungal cell membrane synthesis. It is highly effective against dermatophytes and is used both topically and orally. It accumulates in skin, hair, and nails, making it ideal for treating nail and scalp fungal infections.