The absent in melanoma 2 (AIM2) inflammasome contributes to ischemic brain injury by inducing cell pyroptosis and inflammatory responses. Our research group has previously demonstrated that ATP-sensitive potassium channels (KATP channels) openers can modulate neuronal synaptic plasticity post-ischemic stroke for neuroprotection. However, the specific mechanisms of KATP channels in the inflammatory response following ischemic stroke remain unclear. Here, we assessed cellular damage by observing changes in BV-2 morphology and viability. 2,3,5-Triphenyl tetrazolium chloride (TTC) staining, mNSS scoring, Nissl staining, and TdTmediated dUTP nick end labeling (TUNEL) staining were used to evaluate behavioral deficits, brain injury severity, and neuronal damage in mice subjected to middle cerebral artery occlusion (MCAO). Quantitative realtime polymerase chain reaction (qRT-PCR), Western blotting, immunofluorescence, and enzyme-linked immunosorbent assay (ELISA) were used to measure cell pyroptosis and nuclear factor-kappaB (NF-kappa B) activation in vivo and in vitro. We observed that AIM2 protein expression was upregulated and localized within the cytoplasm of BV-2 cells. Notably, low-dose Nicorandil treatment reduced inflammatory cytokine secretion and pyroptosisrelated protein expression, including AIM2, cleaved cysteinyl aspartate-specific protease-1 (cleaved caspase-1), and Gasdermin D N-terminal (GSDMD-NT). Further investigations revealed that the KATP channel inhibitor 5HD upregulated p-NF-kappa B p65, NF-kappa B p65, and p-I kappa B alpha expression, reversing Nicorandil's neuroprotective effect in vivo. In summary, our results suggest that Nicorandil may serve as a potential therapeutic option for ischemic stroke. Targeting AIM2 and NF-kappa B represents effective strategies for inhibiting neuroinflammation.