Stigmasterol is a plant sterol with anti-apoptotic, anti-oxidative and anti-inflammatory effect through multiple mechanisms. In this study, we further assessed whether it exerts protective effect on human brain microvessel endothelial cells (HBMECs) against ischemia-reperfusion injury and explored the underlying mechanisms. HBMECs were used to establish an in vitro oxygen and glucose deprivation/reperfusion (OGD/R) model, while a middle cerebral artery occlusion (MCAO) model of rats were constructed. The interaction between stigmasterol and EPHA2 was detected by surface plasmon resonance (SPR) and cellular thermal shift assay (CETSA). The results showed that 10 μmol·L-1 stigmasterol significantly protected cell viability, alleviated the loss of tight junction proteins and attenuated the blood-brain barrier (BBB) damage induced by OGD/R in thein vitro model. Subsequent molecular docking showed that stigmasterol might interact with EPHA2 at multiple sites, including T692, a critical gatekeep residue of this receptor. Exogenous ephrin-A1 (an EPHA2 ligand) exacerbated OGD/R-induced EPHA2 phosphorylation at S897, facilitated ZO-1/claudin-5 loss, and promoted BBB leakage in vitro, which were significantly attenuated after stigmasterol treatment. The rat MCAO model confirmed these protective effects in vivo. In summary, these findings suggest that stigmasterol protects HBMECs against ischemia-reperfusion injury by maintaining cell viability, reducing the loss of tight junction proteins, and attenuating the BBB damage. These protective effects are at least meditated by its interaction with EPHA2 and inhibitory effect on EPHA2 phosphorylation.