Diabetes was observed to inhibit osteoblast differentiation in vitro, evidenced by downregulating the protein expression of OCN, OPN and ALP, decreasing primary cilia biosynthesis, and suppressing the Hedgehog signalling pathway. The gene discussed is BGLAP; the disease is diabetes mellitus.