Athlete's foot and nail fungus are caused by the same type of fungi (dermatophytes). If left untreated, athlete's foot can spread to toenails, causing fungal nail infection. The infection can migrate from the skin between toes to the nail bed and nail plate.