Onychomycosis, also known as nail fungus, is a common fungal infection that affects the toenails or fingernails. It is primarily caused by dermatophytes, yeast, and non-dermatophyte molds. This condition leads to the discoloration, thickening, and separation of the nail from the nail bed.