The esophagus is a tube that's part of the digestive tract. It carries food and liquid from your throat to your stomach. In adults, it's about 10 to 13 inches (25 to 33 centimeters) long. The esophagus is located behind the windpipe (trachea) and in front of your spine.
When you swallow, the esophagus tightens and relaxes. This causes “waves” along the tube. This motion moves food down into your stomach. Glands in the esophagus make mucus to keep the lining moist. This makes swallowing easier.
The wall of the esophagus has many layers that include mucosa, connective tissue, and muscle. The layer that lines the esophagus is called the mucosa. Its innermost epithelial lining is made up mainly of thin, flat cells. They are called squamous cells.
If stomach acid backs up into the lower part of the esophagus (acid reflux) over a long time, the squamous cells can be replaced by glandular cells. These cells make mucus and other fluids to try to protect the lower part of the esophagus. This change is called Barrett's esophagus.
The lower end of the esophagus connects to the stomach at the gastroesophageal junction (GEJ).