Onychomycosis is a fungal infection of the nail that can cause discoloration, thickening, and crumbling of the nail. It’s commonly caused by dermatophyte fungi and can affect toenails or fingernails. Treatment may involve antifungal medications, topical solutions, or in severe cases, surgical removal of the nail.