The esophagus is a muscular tube that connects the mouth to the stomach. It is responsible for transporting food from the mouth to the stomach through a process called peristalsis.