Vitamin D (specifically Vitamin D3 or cholecalciferol) is synthesized in the skin when it is exposed to ultraviolet B (UVB) radiation from sunlight. A precursor molecule, 7-dehydrocholesterol, present in the skin, is converted into Vitamin D3 under UV light.