The respiratory system provides gas exchange by taking in oxygen and removing carbon dioxide. It contains the nose, mouth, pharynx, larynx, trachea, bronchi, bronchioles and lungs. The lungs contain alveoli where gas exchange occurs through diffusion between the alveolar air and capillary blood. Inhalation is driven by contraction of the diaphragm which increases the thoracic cavity volume, lowering pressure and drawing air in. Exhalation is passive as the diaphragm and chest wall relax, reducing volume and raising pressure to push air out.