Our study provides evidence to show that harmine can mitigate cognitive impairment in STZ-induced diabetic rats and exert neuroprotective effects through inhibiting NLRP3 inflammasome activation and enhancing the BDNF/TrkB signaling pathway. This evidence concerns the gene BDNF and Cognitive impairment.