Your toenails turn yellow as a result of fungus infection. Certain fungi are known to produce pigments where they grow and those that grow in the nails make them yellow. Together with discoloration the toenails become thick and painful when you wear shoes. Toenail fungus is tiny group of organisms …