Terbinafine belongs to the group of medicines called antifungals. It is used to treat fungus infections of the scalp, body, groin (jock itch), feet (athlete's foot), fingernails, and toenails. This medicine is available only with your doctor's prescription.