Vitamin D has several important functions. Perhaps the most vital are regulating the absorption of calcium and phosphorus, and facilitating normal immune system function. Getting a sufficient amount of vitamin D is important for normal growth and development of bones and teeth, as well as improved resistance against certain diseases.