Persian rule in Egypt ended with the defeat of the Achaemenid Empire by Alexander the Great, who accepted the surrender of the Persian satrap of Egypt Mazaces in 332 BC, and marking the beginning of Hellenistic rule in Egypt, which stabilized after Alexander's death into the Ptolemaic Kingdom.