During the Third Intermediate Period and the Late Period, Memphis is often the scene of liberation struggles of the local dynasties against an occupying force, such as the Kushites, Assyrians, and Persians. The triumphant campaign of Piankhi, ruler of the Kushites, saw the establishment of the Twenty-fifth Dynasty, whose seat of power was in Napata. Piankhi's conquest of Egypt was recorded on the Victory Stele at the Temple of Amun in Gebel Barkal. Following the capture of Memphis, he restored the temples and cults neglected during the reign of the Libyans. His successors are known for building chapels in the southwest corner of the temple of Ptah.