Most commonly, fungi live in the soil. The spores that infect dogs are microscopic. Fungal infections on the skin, like ringworm, usually pass directly through skin contact or contaminated surfaces.