ObjectiveAn elevated serum calcium level is associated with a higher risk of type 2 diabetes (T2D), but its role in microvascular complications remains unclear. This study was conducted to investigate the association between serum calcium levels and vision-threatening diabetic retinopathy (VTDR). MethodsThis study employed a cross-sectional and longitudinal design. The cross-sectional part included all patients treated for T2D at Shanghai General Hospital between 2007 and 2016, while the longitudinal part involved an overlapping cohort of diabetic patients without VTDR who were followed from their admission until December 2019. Multivariable logistic and Cox proportional hazard regression analyses were performed, respectively. VTDR was defined as severe nonproliferative diabetic retinopathy, proliferative diabetic retinopathy, or clinically significant macular edema. ResultsA total of 3269 patients were included in the cross-sectional analysis, and 649 patients were included in the longitudinal analysis. In the cross-sectional analysis, higher corrected serum calcium (odds ratio: 1.31 per 0.1 mmol/L, 95% confidence interval: 1.16-1.49), younger age, longer diabetes duration, albuminuria, impaired renal function, and lower serum magnesium were independently associated with VTDR. In the longitudinal analysis, 95 subjects developed VTDR during follow-up (9.7 years, interquartile range: 7.4-10.9 years). Higher corrected serum calcium (hazard ratio: 1.38 per 0.1 mmol/L, 95% confidence interval: 1.10-1.72), younger age, longer diabetes duration, sub-VTDR, albuminuria, lower serum magnesium, and higher glycated hemoglobin were identified as independent risk factors for VTDR. ConclusionsA higher serum calcium level may be an independent risk factor for VTDR in patients with T2D.