the expanding universe used to be an opaque plasma of photons, electrons, Hydrogen, Helium, and Lithium nuclei. As the temperature fell, electrons were able to combine with the atomic nuclei to form neutral atoms and made the universe optically clear