Tinea capitis, commonly known as ringworm of the scalp, is a fungal infection affecting the scalp, hair shafts, and sometimes the eyebrows and eyelashes. The condition is primarily caused by dermatophytes, a group of fungi that can digest keratin, the protein in hair and skin.