During INHALATION - The rib cage moves outwards and the diaphragm contracts to move downwards. As the rib cage expands, the space in the chest cavity increases allowing air rich in oxygen to enter the lungs. Air pressure decrease in the lungs. It is an active process.
During EXHALATION- The ribs move inwards and the diaphragm relaxes to return to its normal position. The contraction of the rib cage reduces the size of the chest cavity. Now air rich in carbon dioxide is driven out of the lungs. Air pressure increases in the lungs. It is a passive process.