As these first stars came to life, they filled their surroundings with powerful ultraviolet light. Far-ultraviolet rays are so energetic that they can strip electrons away from hydrogen atoms when hitting them. The gas in between the stars and galaxies became a mixture of charged particles, a process called cosmic reionisation. It took place slowly over a long stretch of time between around 200 million and one billion years after the Big Bang.
At that time, however, matter had already been diffused over large distances by the continued expansion of space. The interactions of photons and electrons were much less frequent than before electron-proton recombination. Thus, the Universe remained overall transparent to light, as it is today.
While reionisation was taking place, large clumps of neutral hydrogen were still present in intergalactic space – like clouds scattered in a clear blue sky. Their presence absorbed the far-UV light coming to us from the very early galaxies that were forming during this era.
That's why, when a galaxy is very far away, and very young, there is a prominent bump in the light spectrum of that galaxy. The bump appears in near-infrared and corresponds to the wavelength beyond which the far UV-light is absorbed by the hydrogen clouds. The huge distance travelled by that galaxy’s light through the expanding Universe causes its wavelength to stretch and become longer (cosmological redshift), so the UV bump appears in near-infrared light.
Scientists identify this sharp rise at near-infrared wavelengths and use it to accurately determine a galaxy’s redshift, and from this its distance in light-travel time and the Universe’s age at the time the light left the galaxy.