Fungal infections can spread through direct contact with an infected person, contaminated surfaces, or sharing personal items such as towels, clothing, or shoes. They can also be acquired by walking barefoot in damp public areas like showers, pools, or locker rooms.