The costal cartilages allow for some movement of the ribs during respiration. When the muscles of inspiration contract, the ribs are pulled upward and outward, increasing the volume of the thoracic cavity and drawing air into the lungs. When the muscles of expiration relax, the ribs return to their resting position, decreasing the volume of the thoracic cavity and expelling air from the lungs.
The costal cartilages also provide support for the sternum and help to protect the heart, lungs, and other organs in the thoracic cavity.