The thoracic cavity is formed dorsally by the vertebral column, ventrally by the sternum, laterally by the ribs and on the lower side by the dome:shaped diaphragm. The anatomical setup of lungs in thorax is such that any change in the volume of the thoracic cavity will be reflected in the lung (pulmonary) cavity, which is essential for breathing as we cannot directly alter the pulmonary volume.