About 300,000 years after the Big Bang, the universe consisted primarily of hydrogen atoms, Cold Dark Matter (CDM) and baryons. Shock waves from the Big Bang still reverberated through this mix, and caused it to form clumps. The clumps would eventually form galaxies.