Fungal nail infection means your nail has been infected by a fungus. It can begin as a white or yellow spot under your fingernail or toenail. When it spreads deeper into your nail, your nail can discolor, thicken and develop crumbling edges — an unsightly and potentially painful problem. Once a nail fungal infection begins, it can persist indefinitely if not treated.