Vitamin D is a vitamin that helps the body manages calcium. Calcium keeps your bones strong and is needed for muscles to contract. Vitamin D also has a role in immune function and cell division, helping your body deal with infection and cancer. Vitamin D has effects on many different organs and tissues all over the body.