Scale 04–05 · Galaxies · Universe

Galaxy Formation

The universe began smooth. Gravity made it lumpy. Over 13.8 billion years, dark matter haloes clumped, gas cooled and collapsed, stars ignited, mergers reshaped structures, and the galaxies we see today assembled piece by piece. JWST is now showing us that process was faster and more violent than we expected.

From quantum fluctuations to galactic structure

The seeds of all cosmic structure were quantum fluctuations during inflation — a period of exponential expansion in the first fraction of a second after the Big Bang. These microscopic fluctuations were stretched to cosmological scales and imprinted as density variations in the otherwise smooth early universe. Where density was slightly higher than average, gravity pulled in more matter; slightly lower, matter evacuated toward denser regions. Dark matter, unimpeded by radiation pressure that slowed ordinary matter, began forming filaments and haloes within the first few hundred million years. Ordinary (baryonic) matter eventually fell into these dark matter potential wells, cooled through radiation, and formed the first stars and galaxies.

This bottom-up assembly explains the cosmic web: the large-scale structure of the universe consisting of dark matter filaments connecting dense galaxy clusters, with vast empty voids between them — exactly the pattern predicted by ΛCDM simulations (such as the Millennium Simulation and IllustrisTNG) and confirmed by galaxy surveys. Each galaxy sits at the intersection of filaments within a dark matter halo that extends far beyond its visible stars. See our cosmic web guide, dark matter guide, and Big Bang guide.

Feedback processes and galaxy quenching

Galaxy formation is not simply gas cooling and forming stars — numerous feedback processes regulate and eventually terminate star formation. Supernova feedback: each supernova explosion injects ~10⁵¹ ergs of kinetic energy into surrounding gas, driving outflows that can eject gas from low-mass galaxies and suppress star formation. AGN feedback: energy from a central accreting black hole can couple to the surrounding gas, heating or expelling it — the dominant quenching mechanism in massive ellipticals. Without feedback, simulations predicted far more stars than observed; including both supernova and AGN feedback brought predictions into agreement with the observed galaxy luminosity function. The result is that only ~5–10% of baryons in the universe have ever been incorporated into stars — the rest remains in gaseous form in galaxy haloes or the intergalactic medium. See our galaxy structure guide and quasar guide.

Galaxy mergers, the intergalactic medium, and galaxy evolution

Galaxy formation and galaxy evolution are inseparable from galaxy mergers — the gravitational collisions between galaxies that reshape morphology, trigger starbursts, and fuel central black holes. When two gas-rich spiral galaxies collide, tidal forces strip stars into spectacular tails while gas clouds compress and ignite rapid star formation. The merger remnant typically settles into an elliptical galaxy over hundreds of millions of years. Between galaxies lies the intergalactic medium (IGM) — a diffuse, hot plasma containing most of the universe's baryonic matter. The IGM acts as a vast reservoir from which galaxies accrete fresh gas and into which galactic winds expel enriched material.

At the extreme end of galaxy activity sits the active galactic nucleus (AGN) — a compact, extraordinarily luminous core powered by a supermassive black hole accreting material from a surrounding accretion disk. The most luminous AGN are called quasars — objects so bright they can outshine their entire host galaxy by factors of 100 or more. Quasar formation is closely linked to galaxy mergers, which funnel gas toward the central black hole. Some AGN produce relativistic jets — narrow beams of plasma accelerated to near the speed of light, extending thousands of light-years from the nucleus. When these jets are particularly powerful at radio wavelengths, the host is classified among the radio galaxies. The James Webb Space Telescope has discovered AGN at redshifts beyond z = 10, revealing that supermassive black holes formed astonishingly early in cosmic history. For context on the distances involved, see our cosmic distance guide and NASA's Hubble mission page.

Frequently asked questions

Explore all space guides.

All guides →