Psammetichus I was the grandson of Bakenrenef, and following the Assyrians invasions during the reigns of Taharqa and Tantamani he was recognized as sole king over all of Egypt.
When the Assyrian Empire was preoccupied with revolts, and civil war over control of the throne, Psammetichus threw off his ties to the Assyrians, and formed alliances with Gyges, king of Lydia, and recruited mercenaries from Caria and Greece to resist Assyrian attacks.
With the sack of Nineveh in 612 BC and the fall of the Assyrian Empire, both Psammetichus and his successors attempted to reassert Egyptian power in the Near East, but were driven back by the Babylonians under Nebuchadnezzar II.