In the present study, patients with type 2 diabetes who received GLP-1 RAs had a lower risk of osteoporosis. This evidence concerns the gene GCG and osteoporosis.