Shedding light on the dark ages