The respiratory system is responsible for gas exchange between the circulatory system and the outside world. Air enters through the nasal cavity and pharynx, then travels through the trachea and bronchi into the bronchioles and alveoli in the lungs. The lungs are divided into lobes and contain millions of alveoli which facilitate gas exchange with blood capillaries. During inhalation, intercostal muscles and the diaphragm expand the lungs to create negative pressure and draw in air. Exhalation is passive as the lungs recoil.