Since radiation redshifts as the universe expands, eventually nonrelativistic matter comes to dominate the energy density of the universe. This transition happened at a time of about 50 thousand years after the Big Bang.
Because of the universe's expansion, radiation gets shifted toward longer wavelengths. Eventually, non-relativistic matter takes over as the primary source of energy in the universe. This shift happened about 50,000 years after the Big Bang.