👉 A diaphragm is a membrane that separates the lungs from the thoracic cavity. It helps to regulate air pressure inside the chest, which in turn affects breathing and can affect heart function. Diaphragmatic muscles are also responsible for moving the ribs upwards and downwards during inhalation and exhalation.