The development of the endoderm begins with gastrulation, a process where the blastula reorganizes into a multilayered structure. The endodermal cells invaginate to form the primitive gut tube, which extends from the anterior to the posterior of the embryo. This tube later differentiates to form organs such as the liver, pancreas, and thyroid gland.