Taken together, our results first revealed that BMAL1 regulated osteogenesis of BMSCs through p53 in T2DM, providing a novel direction for further exploration of the mechanism underlying osteoporosis in diabetes. Here, TP53 is linked to diabetes mellitus.