<P> Mortuary temples (or funerary temples) were temples that were erected adjacent to, or in the vicinity of, royal tombs in Ancient Egypt . The temples were designed to commemorate the reign of the Pharaoh by whom they were constructed, as well as for use by the Pharaoh's cult after death . </P> <P> Mortuary temples were built around pyramids in the Old Kingdom and Middle Kingdom . However, once the New Kingdom pharaohs began constructing tombs in the Valley of the Kings, they built their mortuary temples separately . These New Kingdom temples were called "mansions of millions of years" by the Egyptians . </P>

What is the purpose of a funerary temple