Introduction: The effects of sodium-glucose cotransporter 2 inhibitors (SGLT2I) and dipeptidyl peptidase-4 inhibitors (DPP4I) on new-onset cognitive dysfunction in type 2 diabetes mellitus remain unknown. Here, DPP4 is linked to type 2 diabetes mellitus.