Is the thymus gland located in mediastinum?

Yes, the thymus gland, although somewhat variable, is mostly located within the mediastinum. The mediastinum is a section in the thoracic cavity that separates the two lungs and contains, among other structures, the heart, esophagus, trachea, and thymus gland. The thymus gland, a specialized lymphatic organ, plays a central role in the development of the immune system.