👉 In medicine, a thoracic cavity is a space located between the chest and abdomen. It contains the lungs, trachea, and some of the internal organs including the heart, lung, and esophagus. The thoracic cavity also includes the diaphragm, which separates it from the abdominal cavity.