Toenail fungus (onychomycosis) is a common problem that causes your nail to become discolored and thickened. The nail may also grow brittle and crumble at the edges.