Overall, our study illustrated that AS-IV decreases the fasting blood glucose levels, alleviates oxidative stress and neuroinflammation, and ultimately improves cognitive impairment probably via Nrf2/Keap1/HO-1/NQO1 pathway in T2DM mice. Here, KEAP1 is linked to Cognitive impairment.