Nail fungus, also known as onychomycosis, is a common condition that begins as a white or yellow spot under the tip of your fingernail or toenail. As the fungal infection goes deeper, it may cause your nail to discolor, thicken, and crumble at the edge. It can affect several nails, but it's more common in toenails.