In the overall analysis, the results showed that VDR rs739837 was associated with an increased risk of T2DM or GDM in the allele model (T vs. G: OR = 1.088; 95% CI: 1.018–1.163; P = 0.012) and dominant model (TT + GT vs. GG: OR = 1.095; 95% CI: 1.001–1.197; P = 0.047). The gene discussed is VDR; the disease is type 2 diabetes mellitus.