The esophagus functions primarily as a transport tube that directs the progression of food and fluids from the mouth to the stomach.