Cerebral ischemia-reperfusion injury (CIRI) is a severe pathological condition that involves oxidative stress, inflammatory response, and neuronal damage. HY-021068 belongs to a new drug of chemical class 1, which is a potential thromboxane synthase inhibitor. Our preliminary experiment found that HY-021068 has significant anti-neuroinflammatory and neuroprotective effects. However, the protective effect and mechanism of HY-021068 in CIRI remain unclear. To investigate the protective effect and mechanism of HY-021068 in CIRI mice. In mice, CIRI was induced by bilateral common carotid artery occlusion and reperfusion. Mice were treated with HY-021068 or LV-NLRP1-shRNA (lentivirus-mediated shRNA transfection to knock down NLRP1 expression). The locomotor activity, neuronal damage, pathological changes, postsynaptic density protein-95 (PSD-95) expression, NLRP1 inflammasome activation, autophagy markers, and apoptotic proteins were assessed in CIRI mice. In this study, treatment with HY-021065 and LV-NLRP1-shRNA significantly improved motor dysfunction and neuronal damage after CIRI in mice. HY-021065 and NLRP1 knockdown significantly ameliorated the pathological damage and increased PSD-95 expression in the cortex and hippocampus CA1 and CA3 regions. The further studies showed that compared with the CIRI model group, HY-021065 and NLRP1 knockdown treatment inhibited the expressions of NLRP1, ASC, caspase-1, and IL-1β, restored the expressions of p-AMPK/AMPK, Beclin1, LC3II/LC3I, p-mTOR/m-TOR and P62, and regulated the expressions of BCL-2, Caspase3, and BAX in brain tissues of CIRI mice in CIRI mice. These results suggest that HY-021068 exerts a protective role in CIRI mice by inhibiting NLRP1 inflammasome activation and regulating autophagy function and neuronal apoptosis. HY-021068 is expected to become a new therapeutic drug for CIRI.