When we breathe, the epiglottis and the vocal cords open to let air through. When we swallow, the epiglottis closes to prevent food from getting into the trachea and the lungs.