Fungal nail infection, also called onychomycosis, is a fungal disease that affects the toenails or fingernails, causing discoloration, thickening, and deterioration of the nail. The condition is caused by dermatophytes, yeasts, or non-dermatophyte molds invading the nail structure.