The heart is located within the middle mediastinum, alongside many blood vessels and lymph nodes. The middle mediastinum is its largest compartment.