BGLAP and type 2 diabetes mellitus: In this EHR-based cohort study, we demonstrated a U-shaped association between serum osteocalcin levels at baseline and the risks of all-cause and CVD mortality among patients with type 2 diabetes.