The esophagus is a muscular tube connecting the pharynx to the stomach that is part of the upper gastrointestinal tract. It carries swallowed masses of chewed food along its length. At the inferior end of the esophagus is a muscular ring called the loweresophageal sphincter or cardiac sphincter