The diaphragm, also known as the thoracic diaphragm, is the main muscle involved in breathing. It is a domed muscle that separates the chest and abdomen. The diaphragm moves rhythmically while remaining attached to the ribs, sternum, and spine. When the diaphragm contracts, it opens the lungs.