Based on experience from experimental and human studies, vitamin D can be considered an important factor lowering the risk of diabetes mellitus type 1 and 2. The mechanism consists in the direct influence of vitamin D via nuclear receptors on genes coding proteins associated with normal function of B cells of Langerhans islands and genes coding proteins ensuring normal function of the immune system.
There is also an indirect influence via regulation of homeostasis of calcium.