Cerebral ischemia/reperfusion (CIR) injury occurs when blood flow is restored in the brain, causing secondary damage to the ischemic tissues. Previous studies have shown that electroacupuncture (EA) treatment contributes to brain protection against CIR injury through modulating autophagy. Studies indicated that SIRT1-FOXO1 plays a crucial role in regulating autophagy. Here we investigated the mechanisms underlying the neuroprotective effect of EA and its role in modulating autophagy via the SIRT1-FOXO1 signaling pathway in rats with CIR injury. EA pretreatment at "Baihui", "Quchi" and "Zusanli" acupoints (2/15Hz, 1mA, 30 min/day) was performed for 5 days before the rats were subjected to middle cerebral artery occlusion, and the results indicated that EA pretreatment substantially reduced the Longa score and infarct volume, increased the dendritic spine density and lessened autophagosomes in the peri-ischemic cortex of rats. Additionally, EA pretreatment also reduced the ratio of LC3-II/LC3-I, the levels of Ac-FOXO1 and Atg7, and the interaction of Ac-FOXO1 and Atg7, but increased the levels of p62, SIRT1, and FOXO1. The above effects were abrogated by the SIRT1 inhibitor EX527. Thus, we presume that EA pretreatment elicits a neuroprotective effect against CIR injury, potentially by suppressing autophagy via activating the SIRT1-FOXO1 signaling pathway.