Unas built a pyramid in Saqqara, the smallest of the royal pyramids completed during the Old Kingdom. The accompanying mortuary complex with its high and valley temples linked by a causeway was lavishly decorated with painted reliefs, whose quality and variety surpass the usual royal iconography. Furthermore, Unas was the first pharaoh to have the "Pyramid Texts" carved and painted on the walls of the chambers of his pyramid, a major innovation that was followed by his successors until the First Intermediate Period (c. 2160 – c. 2050 BC). These texts identify the king with Ra and with Osiris, whose cult was on the rise in Unas' time, and were meant to help the king reach the afterlife.