Cerebral ischaemia-reperfusion injury (CIRI) is a critical component of ischaemic stroke pathogenesis. Ferroptosis contributes to and aggravates CIRI, whereas the P62/Kelch-like ECH-associated protein 1 (Keap1)/NF-E2-related factor 2 (Nrf2) pathway exerts neuroprotective effects. Astragaloside IV (AST IV) is the primary active ingredient of Astragalus, an herb with anti-CIRI properties used in traditional Chinese medicine. However, the mechanism of its anti-CIRI action is unclear. This study examined the mechanisms underlying the anti-CIRI action of AST IV using a combination of in vitro and in vivo approaches. We established an erastin-induced ferroptosis model, oxygen and glucose deprivation/reoxygenation (OGD/R)-induced model in SH-SY5Y cells, and middle cerebral artery occlusion-reperfusion (MCAO/R) model using Sprague–Dawley rats. The extent of cell damage and brain damage in rats, ferroptosis indicator changes, and expression of P62, Keap1, and Nrf2 were investigated. AST IV inhibited erastin-induced ferroptosis, attenuated OGD/R-induced cell damage, and ameliorated sensorimotor dysfunction and injury in the MCAO/R model. Further, AST IV promoted Nrf2 activation, inhibited ferroptosis, and reduced cell damage. Notably, these effects were inhibited by ML385, an Nrf2 inhibitor. AST IV increased the P62 and Nrf2 levels and decreased the Keap1 levels. P62 silencing reduced the effects of AST IV on the P62/Keap1/Nrf2 pathway and ferroptosis. Our findings suggest that AST IV mitigates CIRI by inhibiting ferroptosis via activation of the P62/Keap1/Nrf2 pathway. This study provides an important scientific basis and direction for the application and research of AST IV and provides new potential targets and ideas for the study of the pathological mechanism of CIRI.