Sonic hedgehog (Shh) is an essential regulator of patterning processes throughout development, and CDX proteins act as the master regulators for intestinal development and differentiation. Shh and CDX2 seem to be interdependently linked with cellular differentiation through different signal cascades. We have recently shown that the loss of Shh and aberrant expression of CDX2 in Helicobacter pylori (H. pylori)-associated atrophic gastritis can be modified by H. pylori eradication prior to incomplete intestinal metaplasia. On the other hand, abnormal signaling of the hedgehog pathway has been reported in gastric cancer, especially diffuse-type cancer and advanced gastric cancer, and Shh acts as a proliferation factor in both the normal mucosa and malignant lesions. CDX2 expressed in the early stage of gastric carcinogenesis is associated with the intestinal phenotypic region and thus with a better outcome. However, it remains unclear how Shh and CDX2 are involved with intestinal transformation and further carcinogenesis.