When Hakoris died in 380 B.C., Nectanebo I ousted his son deposed and killed and assumed control of the throne founding the 30th Dynasty.
Shortly after taking over, Egypt was attacked by a combined force of Persians and Greeks.
The attackers successfully made it across the western side of the NileDelta,
but were delayed before they could take Memphis due to mutual distrust.
The Egyptian army was then able to counterattack and drive the attack out.
The remainder of his reign was stable and Nectanebo rebuilt and enlarged several important temples including Karnak, and Luxor,
in a style that is reminiscent of the buildings of the twenty-sixth Kush dynasty, He also erected a portico on the sacred island of Philae .
From 365 BC, Nectanebo was a co-regent with his son Teos, who succeeded him in 362 BC