The mediastinum is located inside the thoracic cavity (the chest area) between the lungs. It is divided into four compartments: the superior, anterior, middle, and posterior. Each one houses different structures such as the heart and arteries.