The ribs expand when a large flat mus­cle, called the diaphragm, con­tracts or tightens. With the ribs expanded, air goes into the lungs. When the ribs get closer together and the diaphragm re­laxes, the air is pushed out of the lungs. This is how we breathe.