Rat restraint water-immersion stress (RWIS) is a compound stress of high intensity and is widely used to study the pathological mechanisms of stress gastric ulcers. The spinal cord, as a part of the central nervous system, plays a dominant role in the gastrointestinal tract, but whether the spinal cord is involved in rat restraint water-immersion stress (RWIS)-induced gastric mucosal damage has not been reported. In this study, we examined the expression of spinal astrocytic glial fibrillary acidic protein (GFAP), neuronal c-Fos, connexin 43 (Cx43), and p-ERK1/2 during RWIS by immunohistochemistry and Western blotting. In addition, we intrathecally injected the astrocytic toxin L-a-aminoadipate (L-AA), gap junction blocker carbenoxolone (CBX), and ERK1/2 signaling pathway inhibitor PD98059 to explore the role of astrocytes in the spinal cord in RWIS-induced gastric mucosal damage and its possible mechanism in rats. The results showed that the expression of GFAP, c-Fos, Cx43, and p-ERK1/2 was significantly elevated in the spinal cord after RWIS. Intrathecal injection of both the astrocyte toxin L-AA and the gap junction blocker CBX significantly attenuated RWIS-induced gastric mucosal damage and decreased the activation of astrocytes and neurons induced in the spinal cord. Meanwhile, the ERK1/2 signaling pathway inhibitor PD98059 significantly inhibited gastric mucosal damage, gastric motility and RWIS-induced activation of spinal cord neurons and astrocytes. These results suggest that spinal astrocytes may regulate the RWIS-induced activation of neurons via CX43 gap junctions and play a critical role in RWIS-induced gastric mucosa damage through the ERK1/2 signaling pathway.