Finally, according to the tradition recorded by Herodotus, and Diodorus, Amenemhet III built the northern gate of the Temple of Ptah. Remains attributed to this king were indeed found during the excavations in this area conducted by Flinders Petrie, who confirmed the connection. It is also worth noting that, during this time, mastabas of the high priests of Ptah were constructed near the royal pyramids at Saqqara, showing that the royalty and the clergy of Memphis at that time were closely linked. The Thirteenth Dynasty continued this trend, and some kings of this line were buried at Saqqara, attesting that Memphis retained its place at the heart of the monarchy.