The sun is an excellent source of vitamin D, but its ultraviolet (UV) rays can also cause serious damage to your skin. Sunburn, premature aging, and an increased risk of skin cancer are just a few of the problems that can result from too much sun exposure.