With the Twenty-first and Twenty-second Dynasties, there is a continuation of the religious development initiated by Ramesses. Memphis does not seem to have suffered a decline during the Third Intermediate Period, which saw great changes in the geopolitics of the country. Instead it is likely that the kings worked to develop the Memphite cult in their new capital of Tanis, to the northeast. In light of some remains found at the site, it is known that a temple of Ptah was based there. Siamun is cited as having built a temple dedicated to Amun, the remains of which were found by Flinders Petrie in the early twentieth century, in the south of the temple of Ptah complex.