The Achaemenid defeat in Egypt led to unrest among the Achaemenid nobility. From 372 BC, many western satrapies of the Achaemenid Empire started to rebel against Artaxerxes II, in the Great Satraps' Revolt, starting with the powerful satrap Datames. Following the failure of Pharnabazus II in Egypt, Datames had been entrusted by the Persian king with the chief command of a force designed for the recovery of Egypt, but the machinations of his enemies at the Persian court, and the risks to which he was in consequence exposed, induced him to change his plan, and throw off his allegiance to the king. He withdrew with the troops under his command into Cappadocia, and made common cause with the other satraps who were revolting from Persia.