The pharynx, or throat, is a funnel-shaped tube connected to the posterior end of the mouth. The pharynx is responsible for the passing of masses of chewed food from the mouth to the esophagus.it contains a flap of tissue known as the epiglottis that acts as a switch to route food to the esophagus and air to the larynx.