Lying deep to the sternohyoid, sternothyroid, and omohyoid muscles, the thyroid gland is in the visceral compartment of the neck. This compartment also includes the pharynx, trachea, and esophagus and is surrounded by the pretracheal layers of fascia.