A closer look at Cosmic recombination
As the early universe cooled, electrons and nuclei formed neutral atoms in large numbers.
With fewer free electrons available to scatter photons, radiation began traveling much more freely. The transition occurred about 380,000 years after the early hot phase began. A redshift moves spectral features to longer wavelengths.
Today’s microwave background carries an image of conditions near that transition, blurred slightly because decoupling took place over a finite interval.
Want to learn more about Cosmic recombination? Recombination (cosmology) on Wikipedia.

