The diaphragm is a dome-shaped muscle that separates the chest cavity from the abdominal cavity and plays a crucial role in breathing. When the diaphragm contracts, the volume in the chest cavity increases and air flows into the lungs. When the diaphragm relaxes, the volume in the chest cavity decreases and air flows out of the lungs.