Vitamin D, also known as the sunshine vitamin, is primarily obtained through the absorption of sunlight. The sun’s energy is converted to a chemical in your skin, forming vitamin D3. The liver and kidneys then transform the chemical into useful active vitamin D.