Deficiency vitamin D and hyperglycemia could be related to weakened innate immune response and aggravate the progression of tuberculosis (TB). This study hypothesized that DNA promoter methylation of the pivotal genes in the vitamin D metabolic pathway might be related to diabetes and tuberculosis co-morbidity (TB-DM) susceptibility. A total of 50 TB-DM and 50 healthy subjects (HS) were included in the present study. Targeted bisulfite sequencing was applied to detect the methylation of the promoter regions of candidate genes in the vitamin D metabolic pathway (CYP24A1, CYP27B1, CYP2R1, DHCR7, and VDR) in whole blood. The overall methylation level of candidate genes in this study was lower in patients with TB-DM than HS, except for CYP2R1. The results of the ROC demonstrated the potential of CYP24A1, CYP27B1, DHCR7, and VDR promoter methylation as a biomarker for diagnosing TB-DM, with all the AUC above 0.7. In subgroup analysis, we found that lower circulating vitamin D is related to a low level of CYP24A1, CYP27B1, and DHCR7 promoter methylation in patients with TB-DM. With decreasing methylation level, risk of TB-DM was significantly increased (odds ratio, 95% CI 0.343, 0.144-0.821 for CYP24A1; 0.461, 0.275-0.773 for CYP27B1; 0.09, 0.015-0.530 for DHCR7; 0.006, 0.0003-0.115 for VDR). Besides, our results revealed that there was a significant correlation between DNA promoter methylation of selected genes in the vitamin D metabolic pathway and platelet indices in TB-DM. However, there was no correlation between DNA methylation of the four genes and fasting glucose and HbA1c. Our results could suggest that the selected genes in the vitamin D metabolic pathway may be involved in the pathological process of TB-DM, but independent of the process of hyperglycemia to impaired immune responses to Mtb.