The cognitive dysfunction caused by prediabetes causes great difficulties in human life, and the terrible thing is that the means to prevent the occurrence of this disease are very limited at present, Berberine has shown the potential to treat diabetes and cognitive dysfunction, but it still needs to be further explored to clarify the mechanism of its therapeutic effect. Therefore, the aim of this study was to investigate the effects and mechanisms of Berberine on prediabetes‐induced cognitive dysfunction. Prediabetes rat model was induced by a high‐fat diet and a normal diet was used as a control. They were fed for 20 weeks. At week 13, the model rats were given 100 mg/kg Berberine by gavage for 7 weeks. The cognitive function of rats was observed. At the same time, OGTT, fasting blood glucose, blood lipids, insulin and other metabolic parameters, oxidative stress, and apoptosis levels were measured. The results showed that the model rats showed obvious glucose intolerance, elevated blood lipids, and insulin resistance, and the levels of oxidative stress and apoptosis were significantly increased. However, after the administration of Berberine, the blood glucose and lipid metabolism of prediabetic rats were significantly improved, and the oxidative stress level and apoptosis level of hippocampal tissue were significantly reduced. In conclusion, Berberine can alleviate the further development of diabetes in prediabetic rats, reduce oxidative stress and apoptosis in hippocampal tissue, and improve cognitive impairment in prediabetic rats.