The pharynx is the body cavity that connects the nasal and oral cavities with the larynx and esophagus. It is commonly referred to as the throat. The pharynx is part of both the digestive and respiratory systems. For the digestive system, its muscular walls function in the process of swallowing and it serves as a pathway for the movement of food from the mouth to the esophagus.