During gastrulation, cell movements result in a massive reorganization of the embryo from a simple spherical ball of cells, the blastula, into a multi-layered organism. The primary germ layers (endoderm, mesoderm, and ectoderm) are formed and organized in their proper locations during gastrulation. Endoderm, the most internal germ layer, forms the lining of the gut and other internal organs. Ectoderm, the most exterior germ layer, forms skin, brain, the nervous system, and other external tissues. Mesoderm, the the middle germ layer, forms muscle, the skeletal system, and the circulatory system.