In the cosmic timeline, which structure formed first: stars or recognizable galaxies?

Answer

Stars formed first, acting as the building blocks for later structures

The initial, massive Population III stars formed within collapsing gas pockets before the formation of galaxies. The structure of a galaxy emerges only after many generations of these stars live, die, and enrich the gas clouds that subsequently merge.

In the cosmic timeline, which structure formed first: stars or recognizable galaxies?
Spacestarscosmologyformationastrophysicsnebulaestellar formation