Toenail fungus lives naturally on our bodies. If there is some sort of damage or trauma to the nail such as dropping a heavy object on your toe, that can be how the fungus gets into the nail.