The thyroid gland develops from an endodermal diverticulum in the floor of the pharynx early in gestation. It descends into the neck and develops into a bilobed structure located anterior to the larynx and trachea. Thyroid surgery was initially very dangerous, with mortality rates over 40%, but improved techniques in the late 19th century increased safety. The thyroid gland consists of right and left lobes connected by an isthmus, and it is surrounded by a capsule.