Of all the health benefits of sunlight, initiating the process of producing vitamin D in the body may be the best known. When UVB rays hit human skin, they interact with the 7-DHC protein there to produce vitamin D3. People can get vitamin D from their diet and supplements, but sunlight is an important source of this essential nutrient.