This dynasty traced its origins to the Twenty-fourth Dynasty. Psamtik I was probably a descendant of Bakenranef, and following the Neo-Assyrian Empire's invasions during the reigns of Taharqa and Tantamani, he was recognized as sole king over all of Egypt. While the Neo-Assyrian Empire was preoccupied with revolts and civil war over control of the throne, Psamtik threw off his ties to the Assyrians circa 655 BC, formed alliances with King Gyges of Lydia, and recruited mercenaries from Caria and ancient Greece to resist Assyrian attacks.
With the sack of Nineveh in 612 BC and the fall of the Assyrian Empire, both Psamtik and his successors attempted to reassert Egyptian power in the Near East, but were driven back by the Neo-Babylonian Empire under Nebuchadnezzar II. With the help of Greek mercenaries, Apries was able to hold back Babylonian attempts to conquer Egypt, only for the Persians to eventually do so. Their king, Cambyses II, captured and later executed Psamtik III.