In this emulated trial involving 88,381 older patients with T2DM, we found real-word evidence suggesting that the use of GLP-1 agonists was associated with a reduced risk of developing dementia compared with DPP-4 inhibitors and sulfonylureas. The gene discussed is GLP1R; the disease is type 2 diabetes mellitus.