The epiglottis is flap of cartilage located in the throat behind the tongue and in front of the larynx. The main function of the epiglottis is to seal off the windpipe during eating, so that food is not accidentally inhaled. The epiglottis also helps with some aspects of sound production in certain languages.