The one health benefit that sunlight has on human skin is the production of vitamin D. Unfortunately, the ultraviolet rays that stimulate vitamin D production (UVB rays) are the same ones that cause sunburn and skin cancer.
Vitamin D deficiency can cause rickets in children, and osteoporosis in adults
When sunscreen is applied to the skin, it not only reduces sun damage, but unfortunately it also blocks vitamin D production.
“does not recommend getting vitamin D from sun exposure (natural) or indoor tanning (artificial) because ultraviolet (UV) radiation from the sun and tanning beds can lead to the development of skin cancer1”
vitamin D is fat soluble, vitamin D supplements are most effective if taken with food