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. This evidence concerns the gene KEAP1 and type 2 diabetes mellitus.