All animals develop from a ball of cells. In all animals except sponges, that ball of cells invaginates during development (a process called gastrulation) to produce an inner layer of endoderm, and outer layer of ectoderm, and an internal gut cavity (different from the original hollow in the middle of the ball of cells).