It is a fat-soluble vitamin that helps your body absorb calcium and phosphorus. The body makes vitamin D when the skin is exposed to sunlight.