Prior to reionization, there were few if any light sources in the universe. When stars started to form, their light ionized the neutral hydrogen spread throughout the cosmos, turning it transparent.
NASA/WMAP Science Team