Background & Aims: Acute and chronic gastric injury induces alterations in differentiation within the corpus of the stomach called pyloric metaplasia. Pyloric metaplasia is characterized by the death of parietal cells and reprogramming of mitotically quiescent zymogenic chief cells into proliferative, mucin-rich spasmolytic polypeptide–expressing metaplasia (SPEM) cells. Overall, pyloric metaplastic units show increased proliferation and specific expansion of mucous lineages, both by proliferation of normal mucous neck cells and recruitment of SPEM cells. Here, we identify Sox9 as a potential gene of interest in the regulation of mucous neck and SPEM cell identity in the stomach. Methods: We used immunostaining and electron microscopy to characterize the expression pattern of SRY-box transcription factor 9 (SOX9) during murine gastric development, homeostasis, and injury in homeostasis, after genetic deletion of Sox9 and after targeted genetic misexpression of Sox9 in the gastric epithelium and chief cells. Results: SOX9 is expressed in all early gastric progenitors and strongly expressed in mature mucous neck cells with minor expression in the other principal gastric lineages during adult homeostasis. After injury, strong SOX9 expression was induced in the neck and base of corpus units in SPEM cells. Adult corpus units derived from Sox9-deficient gastric progenitors lacked normal mucous neck cells. Misexpression of Sox9 during postnatal development and adult homeostasis expanded mucous gene expression throughout corpus units including within the chief cell zone in the base. Sox9 deletion specifically in chief cells blunts their reprogramming into SPEM. Conclusions: Sox9 is a master regulator of mucous neck cell differentiation during gastric development. Sox9 also is required for chief cells to fully reprogram into SPEM after injury.