The diaphragm helps in the inspiration and expiration of air in and out of the lungs. At the time of inspiration, the diaphragm contracts, increasing the pulmonary volume, thereby reducing the intrapulmonary pressure to less than the atmospheric pressure, and air moves into the lungs.