The esophagus is a muscular tube connecting the throat (pharynx) with the stomach. The esophagus is about 8 inches long, and is lined by moist pink tissue called mucosa. The esophagus runs behind the windpipe (trachea) and heart, and in front of the spine. ... They keep food and secretions from going down the windpipe.Mar 7, 2018