The diaphragm is a muscle located below the lungs. It contracts and relaxes during breathing, causing changes in the volume of the thoracic cavity, which allows air to be drawn into and expelled from the lungs.