Vitamin D is sometimes called the “sunshine vitamin” because it’s produced in your skin in response to sunlight. It’s a fat-soluble vitamin and has several important functions. Perhaps the most vital roles are regulating the absorption of calcium and phosphorus, and facilitating normal immune system function.