Chronic stress often triggers gastrointestinal complications, including gastric injury and ulcers. Understanding the role of heat shock protein 27 (HSP27) in stress‐induced gastric ulcers could unveil novel therapeutic targets. Here, we established a stress‐induced gastric ulcer rat model using water immersion restraint stress and administered adenovirus‐packaged HSP27 overexpression vector. Gastric ulcer severity was scored, and mucosal changes were assessed. Gastric epithelial and endothelial cells were treated with lipopolysaccharide and transfected with HSP27 overexpression vectors to evaluate cell viability, migration and angiogenesis. Expression levels of HSP27, C‐X‐C motif chemokine ligand 12 (CXCL12) and C‐X‐C motif chemokine receptor 4 (CXCR4) were measured in tissues and cells. HSP27 expression was initially low during stress‐induced gastric ulceration but increased during ulcer healing. HSP27 overexpression accelerated ulcer healing in rats, promoting gastric epithelial cell proliferation and migration and gastric endothelial cell angiogenesis through the CXCL12/CXCR4 axis. Inhibitor IT1t reversed the effects of HSP27 overexpression on cell proliferation, migration and angiogenesis. In summary, HSP27 overexpression facilitated ulcer healing, which was partially mediated by the CXCL12/CXCR4 axis.