Spinal cord injury (SCI) is usually caused by external direct or indirect factors, and with a high morbidity and mortality rate. The aim of this study was to observe the effects of Dexmedetomidine (DEX) combined with Esketamine (ESK) on pain behavior and potential analgesic mechanisms in rats with SCI. The goal was to provide a reliable multimodal analgesic medication regimen for SCI. Thirty rats were divided into five groups with six rats in each group: Sham group, SCI group, DEX group, ESK group, and DEX+ESK group. The SCI model in rats was constructed, and the motor function of hind limbs of rats was measured using Basso Beattie Bresnahan (BBB) locomotor rating scale and inclined plate test. The levels of interleukin 18 (IL-18), interleukin 1β (IL-1β), and tumor necrosis factor-α (TNF-α) in the spinal cord were determined by enzyme-linked immunosorbent assay (ELISA). The expressions of substance P (SP), neurokinin-1 receptor (NK-1R), B cell lymphoma-2 (Bcl-2), and Bcl2-associated X protein (Bax) in the rats' spinal cord were measured by Western blot assay. The viability of spinal astrocytes was evaluated by 3-(4,5-Dimethylthiazol-2-yl)-2,5-diphenyltetrazolium bromide (MTT) assay. After 7 days, the BBB scores were significantly higher in the DEX, ESK, and DEX+ESK groups compared to the SCI group (p < 0.01). Additionally, the DEX+ESK group had significantly higher scores than both the DEX and ESK groups (p < 0.01). The maximum angle of the DEX (p < 0.05), ESK (p < 0.05), and DEX+ESK groups (p < 0.01) were higher than the SCI group, and the maximum angle of DEX+ESK group was higher than DEX and ESK groups (p < 0.05). The levels of IL-18, IL-1β, and TNF-α in the DEX, ESK, and DEX+ESK groups were lower than the SCI group (p < 0.01), while the DEX+ESK group had significantly lower IL-18, IL-1β, and TNF-α levels than the DEX and ESK groups (p < 0.01). The levels of SP (p < 0.01) and NK-1R (p < 0.05) were lower in the DEX, ESK, and DEX+ESK groups compared to the SCI group, and the levels of SP and NK-1R were lower in the DEX+ESK group compared to the DEX and ESK groups (p < 0.01). The DEX and ESK groups suppressed the activity of spinal astrocytes (p < 0.01), however, the DEX+ESK group had larger effects on spinal astrocytes than the ESK group (p < 0.05). Treatment using DEX combined with ESK improves the motor function, inhibits inflammation and astrocyte activity, and exerts analgesic effects on rats with SCI. These findings can serve as a reference for the selection of multi-modal analgesics.