Fungal infections can spread through direct contact with an infected person or contaminated surfaces, as well as through the sharing of personal items like towels, clothing, or combs.