The respiratory system controls breathing by bringing oxygen into the body through the nose and mouth. Air enters the nasal cavity, where it is warmed and filtered before reaching the pharynx and larynx. The larynx contains the vocal cords and epiglottis, which prevent food from entering the trachea. The trachea divides into bronchi that lead into the lungs, where oxygen diffuses into blood vessels in the alveoli and carbon dioxide diffuses out. Breathing is driven by contractions of the diaphragm during inhalation and its relaxation during exhalation.