The human body makes vitamin D in the skin, from cholesterol. Then the liver changes vitamin D into calcitriol, which sends calcium from the blood into the bones. The bones need calcium to stay strong. However, the skin will not make vitamin D unless enough ultraviolet light shines on it. Sunlight contains ultraviolet light, so getting enough sun is one way of getting enough D.