The function of the ribs is to help protect some of your most important organs. I.E. Your heart, lungs, diaphragm.
The ribs [RIB CAGE} main function is to help protect vital organs.
It forms a shield to cover the heart and lungs