Shahrbaraz had played an important role in the Byzantine–Sasanian War of 602–628, and the events that occurred after the war; his mutiny against Khosrow II caused the Sasanian Empire to fall into a civil war. After the death of Shahrbaraz, his son Shapur-i Shahrvaraz deposed Boran and became king of the Sasanian Empire. His reign, however, did not last long, and he was shortly deposed by the Sasanian nobles. During the same period, Niketas entered in the service of the Byzantines, and would later appear as one of the Byzantine generals at the Battle of Yarmouk during the Arab–Byzantine wars.