ObjectiveThe study intended to assess the pooled prevalence of vitamin D deficiency (VDD) and its associated factors among patients with type 2 diabetes mellitus (T2DM).DesignThe Preferred Reporting Items for Systematic Reviews and Meta-Analyses guidelines were employed to plan and conduct this systematic review and meta-analysis.Data sourcesPubMed, Medline, Google Scholar, Web of Science, Science Direct and the Worldwide Science database were searched from their inception to 31 January 2023.MethodsData were extracted using a standardised data extraction format prepared in Microsoft Excel. The inverse variance (I2) test was used to evaluate the presence of heterogeneity across the included studies. To identify the possible source of heterogeneity, subgroup analysis was carried out. Funnel plot symmetry, Begg’s and Egger’s tests were used to evaluate the existence of publication bias. In addition, factors associated with VDD among patients with T2DM were examined. All statistical analyses were carried out with STATA V.14 software.ResultsA total of 54 studies with 38 016 study participants were included in the study. The pooled prevalence of VDD among patients with T2DM was found to be 64.2% (95% CI 60.6% to 67.8%) with a substantial level of heterogeneity (I2=98.2%; p<0.001). Results of the subgroup analysis indicated that the pooled prevalence of VDD among patients with T2DM was highest (70.9%) in African nations and lowest (57.1%) in Middle East countries. Being female (pooled OR (POR) 1.60, 95% CI 1.29 to 1.97), having poor glycaemic control (POR 2.50; 95% CI 1.74 to 3.59), hypertension (POR 1.21; 95% CI 1.08 to 1.36), obesity (body mass index ≥25) (POR 1.68; 95% CI 1.16 to 2.44), dyslipidaemia (POR 2.54, 95% CI 1.37 to 4.73), albuminuria (POR 2.22, 95% CI 1.71 to 2.95), nephropathy (POR 1.58; 95% CI 1.08 to 2.31) and retinopathy (POR 1.48: 95% CI 1.17 to 1.89) were predictors of VDD among patients with T2DM.ConclusionsMore than half of patients with T2DM were suffering from VDD. Being female, having poor glycaemic control, hypertension, obesity, dyslipidaemia, albuminuria, nephropathy and retinopathy were the predictors of VDD among patients with T2DM.