The ribs expand when a large flat muscle, called the diaphragm, contracts or tightens. With the ribs expanded, air goes into the lungs. When the ribs get closer together and the diaphragm relaxes, air is pushed out of the lungs. This is how we breathe.