It has two main functions: The first, and most important with respect to maintaining one's health status, is as a valve. Thus, during the act of swallowing the larynx is closed, thereby ensuring that food passes safely into the esophagus and down into the stomach, rather than entering the lungs.