The mediastinum is the middle section of the chest cavity. The chest cavity contains the left and right lungs, which lie on either side of the heart.The heart is contained in the portion of the chest known as the mediastinum.he chest cavity contains the left and right lungs, which lie on either side of the heart. The heart is contained in the portion of the chest known as the mediastinum.