Our results show that in all age groups, vitamin D deficiency was related to a higher risk of DSPN and this relationship was independent of sex, age, weight, blood pressure, HbA1c, T2DM duration, calcium, phosphorus, parathyroid hormone, lipids and renal function. This evidence concerns the gene PTH and type 2 diabetes mellitus.