Electroacupuncture (EA) has beneficial effects on spinal cord ischemia reperfusion (I/R) injury, but the underlying mechanisms are not fully understood. This study aimed to investigate the role of autophagy in the protection of EA preconditioning and postconditioning against spinal cord I/R injury. For this, spinal cord I/R injury was induced by 14min occlusion of the aortic arch, and rats were treated with EA for 20min before or after the surgery. The expression of autophagy components, light chain 3 and Beclin 1, was assessed by Western blot. The hind-limb motor function was assessed using the Basso-Beattie-Bresnahan (BBB) criteria, and motor neurons in the ventral gray matter were counted by histological examination. The apoptosis of neurocyte was assessed by the terminal deoxynucleotidyl transferase-mediated dUTP-biotin nick end labeling (TUNEL) assay. The expression of tumor necrosis factor-α (TNF-α), interleukin-1β (IL-1β), and matrix metalloproteinase-9 (MMP-9) was also measured using Western blot or enzyme-linked immunosorbent assay (ELISA). Either EA preconditioning or postconditioning enhanced autophagy, and minimized the neuromotor dysfunction and histopathological deficits after spinal cord I/R injury. In addition, EA suppressed I/R-induced apoptosis and increased in the expression of TNF-α, IL-1β, and MMP-9. In contrast, the autophagic inhibitor (3-methyladenine, 3-MA) inhibited the neuroprotective effects of EA. Moreover, 3-MA increased the apoptosis and the expression of TNF-α, IL-1β, and MMP-9. In summary, these findings suggested that EA preconditioning and postconditioning could alleviate spinal cord I/R injury, which was partly mediated by autophagy upregulation-induced inhibition of apoptosis and neuroinflammation.