Nectanebo I had gained control of all of Egypt by November of 380 BC, but spent much of his reign defending his kingdom from Persian reconquest with the occasional help of Sparta or Athens.
After his father's death, Teos invaded the Persian territories of modern Syria and Israel and was beginning to meet with some successes when he lost his throne due to the machinations of his own brother Tjahapimu.
For the first ten years, Nectanebo avoided the Persian reconquest because Artaxerxes III was forced to consolidate his control of the realm.
Artaxerxes then attempted an unsuccessful invasion of Egypt in the winter of 351/350 BC; the repercussions of his defeat prompted revolts in Cyprus, Phoenicia, and Cilicia.
[1]: 380–381 Although a shadowy figure named Khababash proclaimed himself king and led a rebellion against the Persians from about 338 to 335 BC, Nectanebo has been considered the last native pharaoh of Egypt.