The foregut is the anterior part of the alimentary canal, from the mouth to the duodenum at the entrance of the bile duct, and is attached to the abdominal walls by mesentery. The foregut develops from the folding primitive gut, and is developmentally distinct from the midgut and hindgut. Although the term “foregut” is typically used in reference to the anterior section of the primitive gut, components of the adult gut can also be described with this designation. Pain in the epigastric region, just below the intersection of the ribs, typically refers to structures in the adult foregut.