Inductive interactions between gut endoderm and the underlying mesenchyme pattern the developing digestive tract into regions with specific morphology and functions. The molecular mechanisms behind these interactions are largely unknown. Expression of the conserved homeobox gene Barx1 is restricted to the stomach mesenchyme during gut organogenesis. Using recombinant tissue cultures, we show that Barx1 loss in the mesenchyme prevents stomach epithelial differentiation of overlying endoderm and induces intestine-specific genes instead. Additionally, Barx1 null mouse embryos show visceral homeosis, with intestinal gene expression within a highly disorganized gastric epithelium. Barx1 directs mesenchymal cell expression of two secreted Wnt antagonists, sFRP1 and sFRP2, and these factors are sufficient replacements for Barx1 function. Canonical Wnt signaling is prominent in the prospective gastric endoderm prior to epithelial differentiation, and its inhibition by Barx1-dependent signaling permits development of stomach-specific epithelium. These results define a transcriptional and signaling pathway of inductive cell interactions in vertebrate organogenesis.