Reionization began as "bubbles" of ionized hydrogen which became larger over time until the entire intergalactic medium was ionized, when the absorption lines by neutral hydrogen become rare. The absorption was due to the general state of the universe (the intergalactic medium) and not due to passing through galaxies or other dense areas. Reionization might have started to happen as early as z = 16 (250 million years of cosmic time) and was mostly complete by around z = 9 or 10 (500 million years), with the remaining neutral hydrogen becoming fully ionized z = 5 or 6 (1 billion years), when Gunn-Peterson troughs that show the presence of large amounts of neutral hydrogen disappear. The intergalactic medium remains predominantly ionized to the present day, the exception being some remaining neutral hydrogen clouds, which cause Lyman-alpha forests to appear in spectra.