Our findings revealed that GLP-1 agonists were associated with a lower risk of dementia in patients with T2DM, compared to DPP-4 inhibitors or sulfonylureas. The gene discussed is GLP1R; the disease is type 2 diabetes mellitus.