The thoracic cavity contains the lungs, heart, esophagus, and other structures. It is bounded by the thoracic wall anteriorly and the vertebral column posteriorly. The mediastinum divides the cavity into left and right pleural cavities which contain the lungs. The diaphragm separates the thoracic and abdominal cavities. Key structures in the thoracic cavity include the lungs, trachea, bronchi, blood vessels, esophagus, thymus gland, and diaphragm.