Mycosis nail fungus, also known as onychomycosis, is a fungal infection of the nail unit. It is more common in the toenails because fungi thrive in warm, moist environments like your shoes.