The findings reveal for the first time that THC inhibits ferroptosis through the activation of the Keap1/Nrf2 signaling pathway, significantly improving BBB dysfunction and alleviating neurological deficits following cerebral ischemia–reperfusion. Here, KEAP1 is linked to brain ischemia.