Mangiferin has antioxidant, antiviral, apoptosis regulating, anti‑inflammatory, antitumor and antidiabetic effects, which can also inhibit osteoclast formation and bone resorption. However, whether mangiferin ameliorates the neurological pain of spinal cord injury (SCI) in ratS remains to be elucidated. The present study investigated the therapeutic effects of mangiferin on neurological function, the water content of spinal cord, oxidative stress, the expression of inflammatory cytokines and the protein expression of Bcl‑2/Bax in a SCI rat model. In the present study, the Basso, Beattie and Bresnahan scores, and the water content of the spinal cord were used to analyze the therapeutic effects of mangiferin on neurological pain in the SCI rat. The concentrations of malondialdehyde (MDA), superoxide dismutase (SOD), catalase (CAT), and the serum levels of glutathione peroxidase (GSH‑PX), nuclear factor‑κB p65 unit, tumor necrosis factor‑α, interleukin (IL)‑1β, IL‑6 and caspase‑3/9 were detected using commercial kits. The expression levels of Bcl‑2 and Bax were measured using western blot analysis. The results demonstrated that administrating mangiferin began to ameliorate neurological function and the water content of the spinal cord in the SCI rat. The mangiferin‑treated group were found to have lower oxidative stress activity and lower expression levels of inflammatory cytokines, compared with the SCI rat. In addition, mangiferin significantly reduced the protein expression of Bax and promoted the protein expression of Bcl-2 in the SCI rat model. Finally, mangiferin markedly suppressed the expression of caspase‑3/9, indicating that the protective action of mangiferin may be associated with anti‑apoptosis activation. In conclusion, mangiferin attenuated contusive SCI in the rats through regulating oxidative stress, inflammation and the Bcl‑2 and Bax pathway.