Fungus thrives in a warm, moist environment. This can happen if:  You wear shoes that don't allow air flow. You wear plastic shoes. You keep your feet wet for a long period of time. Your feet sweat a lot. You have a minor foot injury.