When you inhale, these muscles contract, pulling your ribs up, and your diaphragm down. This increases the size of your chest and lungs, pulling air into your lungs. When you exhale, these muscles relax: your ribs go down and your diaphragm goes up. This decreases the size of your chest and lungs, forcing air out.