Ectoderm refers to the outermost part of the three primary germ layers of an embryo which is the source of various tissues and structures including the nervous system, epidermis, etc.
During gastrulation, the mesoderm forms from the epiblast cells.
After that, the cells cease to enter into the primitive streak.
Cells that are remaining in entering form the ectoderm layer.