The study of the structures and functions of the esophagus, the tube that connects the mouth and the stomach.