A groundbreaking study published in the Journal of Internal Medicine has revealed something absolutely amazing about the role of the Sun in human health: a deficiency of sunlight could be as harmful to human health as smoking cigarettes
Because cancer risk increases along with biological age, the longer you live, the higher your cancer risk will be. Therefore, because increased sunlight exposure actually increases your longevity, it will also appear to increase your risk of cancer. But this does not necessarily mean that sunlight is intrinsically "carcinogenic," which is commonly assumed.
"Nonsmokers who avoided sun exposure had a life expectancy similar to smokers in the highest sun exposure group, indicating that avoidance of sun exposure is a risk factor for death of a similar magnitude as smoking."