The mortuary temple adjacent to the pyramid was decorated with scenes showing the king spearing a hippopotamus and thus triumphing over chaos. Other scenes include the sed festival, a festival of the god Min and scenes showing Pepi executing a Libyan chieftain, who is accompanied by his wife and son. The scene with the Libyan chief is a copy from Sahure's temple. A courtyard was surrounded by 18 pillars which were decorated with scenes of the king in the presence of gods.