During expiration, the muscles of the ribs and diaphragm relax, causing the ribs to move downward and inward and the diaphragm to become more dome-like in shape. This reduction in the chest cavity size exerts pressure on the lungs, causing the air to move out of the lungs in a process called expiration.