: Background as a prevalent cerebrovascular disorder, cerebral infarction (CI) has garnered extensive attention globally due to its high incidence and substantial fatality rate. Ischemia-reperfusion injury (IRI) exacerbates not only neuronal demise but also amplifies neural functional impairment. Tanshinone IIA (Tan IIA) has been identified to confer protection against IRI, yet the precise underlying mechanisms remain elusive. This work aimed to delve into the mechanistic role of Tan IIA in CI, with the goal of furnishing more distinct theoretical substantiation for its clinical application. Methods initially, a middle cerebral artery embolization model group (MCAO) model was established, followed by the categorization of rats into distinct groups based on different administration modes. Therapeutic effects were evaluated through indices including mortality rate, cerebral tissue water content, CI proportion, and neural functional scoring. Meanwhile, cellular apoptosis rates in hippocampal and cortical tissues, as well as levels of oxidative stress molecules (OSM), Sirtuin 1 (SIRT1), Forkhead box O3 (FOXO3α), and inflammatory factors, were examined to explore the mechanism of action. Results this work revealed that within varying doses of Tan IIA groups, as dosage escalated, mortality rate, cerebral edema severity, CI proportion, and neural functional scoring gradually diminished. Notably, the 35 mg/kg dose group exhibited the most significant reductions, with decreases of 74.9%, 12.7%, 47.5%, and 54% respectively. Cellular apoptosis rates in hippocampal and cortical tissues displayed a stepwise descending trend, with the 35 mg/kg dose group showcasing the largest reduction. SIRT1 and FOXO3α proteins exhibited a steady increase, with the 35 mg/kg dose group manifesting respective elevations of 87.9% and 65.5%, the highest among all groups. Antioxidant molecules glutathione (GSH) and superoxide dismutase (SOD) contents progressively increased, whereas malondialdehyde (MDA) and nitric oxide (NO) content decreased. The 35 mg/kg dose group recorded the highest increments of 49.1% and 58.1% for GSH and SOD content, while achieving the greatest reductions of 55.6% and 56.2% for MDA and NO content. Expression of inflammatory factors, namely tumor necrosis factor-alpha (TNF-α), C-reactive protein (CRP), and interleukin-6 (IL-6), gradually declined, with reductions of 42.1%, 32.2%, and 29.1% respectively in the 35 mg/kg dose group, exhibiting drastic differences (P < 0.05). Conclusion In conclusion, this research elucidates that Tan IIA improves cerebral edema and neural function by elevating intracellular expression of SIRT1 and FOXO3α proteins, modulating OSM and inflammatory factors. These findings yielded robust experimental support for the potential use of Tan IIA as a therapeutic agent for CI.