In this study, cognitive function was significantly impaired in the T2DM mice; aerobic exercise improved cognitive impairment through activating the AMPK/SIRT1 signalling pathway and inhibiting the JAK2/STAT3 signalling pathway in T2DM mice. Here, STAT3 is linked to type 2 diabetes mellitus.