Sunlight contains ultraviolet rays, and it is a great heat source that fights against the mold spores and prevents them from accumulating on your shoes.