In vitro studies and both T1D and T2D animal models showed that vitamin D can improve glucose homeostasis by enhancing insulin secretion, reducing inflammation, reducing autoimmunity, preserving beta cell mass, and sensitizing insulin action. This evidence concerns the gene INS and Autoimmunity.