2. A great courtyard was built around it to be a home for the pharaoh in his afterlife. A temple guarded the entrance to the pyramid. Other temples were set about the courtyard. You can see the remains of one on the right.