In the present study, patients with type 2 diabetes who received GLP-1 RAs had a lower risk of osteoporosis. Here, GLP1R is linked to osteoporosis.