The results demonstrated that broccoli intervention significantly ameliorated cognitive deficits in epileptic mice, decreased hippocampal MDA levels while enhancing antioxidant enzyme activities, and upregulated the expression of HO‐1, NQO1, and Nrf2. This evidence concerns the gene HMOX1 and Cognitive impairment.