What vitamin do humans get from the sun

Humans primarily get vitamin D from the sun. When ultraviolet B (UVB) rays from the sun interact with the skin, it triggers a synthesis of vitamin D3, also known as cholecalciferol. This form of vitamin D is then converted into its active form by the liver and kidneys.