Fungal infections can spread through direct contact with an infected person or animal, or by touching contaminated surfaces. Some fungi thrive in warm, moist environments, making communal showers and locker rooms common places for transmission. Inhalation of fungal spores can also lead to respiratory infections.