Egyptian pyramids served as tombs for kings and queens, but they were also places of ongoing religious activity. After a ruler died, his or her body was carefully treated and wrapped to preserve it as a mummy. According to ancient Egyptian belief, the pyramid, where the mummy was placed, provided a place for the monarch to pass into the afterlife. In temples nearby, priests performed rituals to nourish the dead monarch’s spirit, which was believed to stay with the body after death. In the Old Kingdom (a period of Egyptian history from about 2575 BC to about 2134 BC), Egyptian artists carved hieroglyphs on the walls of the burial chamber, designed to safeguard the dead monarch’s passage into the afterlife. These hieroglyphic writings, which include hymns, magical spells, instructions on how to act in front of the gods, and other pieces of useful knowledge, are known as the Pyramid Texts.