Egypt would remain in Sasanian hands for 10 years, run by general Shahrbaraz from Alexandria. As the new Roman emperor, Heraclius, reversed the tide and defeated Khosrau II, Shahrbaraz was ordered to evacuate the province, but refused. In the end, Heraclius, trying both to recover Egypt and to sow disunion amongst the Iranians, offered to help Shahrbaraz seize the Sasanian throne for himself.