Oxysophoridine (OSR) is an alkaloid extracted from Sophora alopecuroides L and has various pharmacological activities. The present study aimed to investigate the protective effects and underlying mechanisms of OSR on spinal cord injury (SCI), a clinically common serious trauma, in a rat model. The results of the present study demonstrated that the anti‑inflammatory effect of OSR improved Basso, Beatie and Bresnahan Locomotor Rating Scale scores and reduced spinal cord tissue water contents in an SCI rat model. Inflammatory activation was measured by ELISA, and Prostaglandin E2 (PGE2), intercellular adhesion molecule‑1 (ICAM‑1), cyclooxygenase‑2 (COX‑2), nuclear factor‑κB (NF‑κB) and B‑cell lymphoma 2 (Bcl‑2)/Bcl‑2‑associated X (Bax) protein expression levels using western blotting. The results revealed that treatment with OSR reduced tumor necrosis factor‑α, interleukin (IL)‑1β, IL‑6, IL‑8 and malondialdehyde, and increased superoxide dismutase and glutathione peroxidase levels in the serum of an SCI rat model. OSR significantly reduced the protein expression of inflammation‑associated proteins PGE2, ICAM‑1, COX‑2, NF‑κB and Bcl‑2/Bax ratio in the spinal cord tissue of an SCI rat model. Furthermore, the results of the current study demonstrate that OSR ameliorates SCI via anti‑inflammatory, anti‑oxidative stress and anti‑apoptosis effects.