The musculofibrous partition that separates the thoracic cavity from the abdominal cavity. Contraction of the diaphragm increases the volume of the thoracic cavity aiding inhalation.