For several years, Nectanebo II was successful in keeping Egypt safe from the Achaemenid Empire. However, he was betrayed by a former servant, Mentor of Rhodes. Nectanebo II was finally defeated by combined Persian and Greek forces in the Battle of Pelusium (343 BC). The Persians occupied Memphis and then seized the rest of Egypt. They took the country into the Achaemenid Empire under Artaxerxes III. Nectanebo fled south and was influential for some time; his final fate is unknown.