His reign heralded the ascendancy of the cult of Ra, who effectively became Egypt's state god during the Fifth Dynasty. Userkaf may have been a high-priest of Ra before ascending the throne, and built a sun temple, known as the "Nekhenre", between Abusir and Abu Gurab. In doing so, he instituted a tradition followed by his successors over a period of 80 years. The "Nekhenre" mainly functioned as a mortuary temple for the setting sun. Rites performed in the temple were primarily concerned with Ra's creator function and his role as father of the king. Taken with the reduction in the size of the royal mortuary complex, this suggests a more concrete separation between the sun god and the king than in the preceding dynasties. After Userkaf's death, his temple was the subject of four building phases, during which it acquired a large obelisk.