Vitamin D is crucial for the absorption and metabolism of calcium and phosphorous, which have various functions, including the maintenance of healthy bones and the regulation of the immune system to prevent colds and flus. Vitamin D helps the body absorb and use calcium, which you need for strong bones. Getting enough vitamin D throughout your life is important, since most bone is formed when you are young.