The pharynx is part of both the gastrointestinal system and respiratory system. In the respiratory system the pharynx functions in conducting air from the nasal cavities to the larynx. In the digestive system the pharynx functions in the swallowing.