We summarize the molecular mechanisms of vitamin D in regulating insulin secretion and insulin action in both homeostasis and T2D, as well as the epidemiology and clinical evidence ascertaining a protective role of vitamin D in T2D pathogenesis. This evidence concerns the gene INS and type 2 diabetes mellitus.