Figure 

20.4.1: Inspiration and Expiration. During inspiration, the diaphragm and external intercostal muscles contract, expanding the volume in the thoracic cavity, creating a pressure gradient with lower air pressure in the lungs that draws air in. During expiration, the diaphragm and external intercostal muscles relax, reducing the volume in the thoracic cavity and reversing the pressure gradient with higher air pressure in the lungs that forces air out. (Image credit: "Inspiration and Expiration" by OpenStax is licensed under CC BY 3.0)