Griseofulvin and terbinafine hydrochloride are the top anti-fungal medications prescribed for fungus on the scalp, also known as tinea capitis or ringworm of the scalp. Doctors also often prescribe a medicated shampoo containing a 2.5 percent solution of selenium sulfide, according to Healthline.
Tinea capitis, which is highly contagious, occurs when fungi known as dermatophytes take up residence on the scalp. The condition causes itchy patches on the scalp, brittle or broken hair, scaly or bald spots, and, in severe cases, swollen areas filled with pus. Tinea capitis may be accompanied by fever and swollen lymph nodes, as Healthline explains. It's hard to get rid of the fungi that cause tinea capitis, and treatment may take a month or more.