The universe continues to cool, allowing protons and neutrons to combine to form the nuclei of future atoms. 10 -32 second to 3000 years. Electromagnetic energy, produced during the annihilation of quarks and antiquarks, dominates the forces of gravity. 3000 years to present. Matter becomes the primary source of gravity.
Matter begins to clump with the aid of large amounts of exotic or dark matter.
This matter interacts weakly with electromagnetic energy, but is able to clump with itself through gravity, even during the domination of electromagnetic energy. Continued expansion and cooling allow matter and electromagnetic energy to decouple. The nuclei of atoms are able to capture electrons to form complete atoms of hydrogen, helium and lithium. Galaxy formation begins as matter continues to clump. The solar system forms.