In non-older female patients with T2DM, the association between HGB levels and BMD was linearly positive, and the association between HGB levels and MOF and HF showed a non-linear correlation with MOF and HF. Here, CYGB is linked to type 2 diabetes mellitus.