Dementia is quite prevalent and among the leading causes of death worldwide. According to earlier research, diabetes may increase the possibility of developing dementia. However, the association between antidiabetic agents and dementia is not yet clear. This investigation examines the association between the use of sodium-glucose transporter2 inhibitors (SGLT2i) and the risk of dementia in patients with diabetes. Up to April 18, 2023, four databases-Europe PMC, Medline, Scopus, and Cochrane Library-were searched for relevant literature. We included all studies that examine dementia risk in adults with diabetes who use SGLT2i. Random-effect models were used to compute the outcomes in this investigation, producing pooled odds ratios (OR) with 95% confidence intervals (CI). Pooled data from seven observational studies revealed that SGLT2i use was linked to a lower risk of dementia in people with diabetes (OR 0.45, 95%CI 0.34-0.61; p < 0.00001, I2 = 97%). The reduction in the risk of dementia due to SGLT2i's neuroprotective effect was only significantly affected by dyslipidemia (p = 0.0004), but not by sample size (p = 0.2954), study duration (p = 0.0908), age (p = 0.0805), sex (p = 0.5058), hypertension (p = 0.0609), cardiovascular disease (p = 0.1619), or stroke (p = 0.2734). According to this research, taking SGLT2i reduces the incidence of dementia in people with diabetes by having a beneficial neuroprotective impact. Randomized controlled trials (RCTs) are still required in order to verify the findings of our research.