set in motion a chain of events by embarking on a despotic and increasingly violent course. His policies met with considerable opposition, eventually provoking a rebellion led by Leontios in 695, which deposed and exiled him, precipitating a prolonged period of instability and anarchy, with seven emperors in twenty-two years. Leontios proved equally unpopular and was in turn overthrown by Tiberios III. Tiberios managed to bolster the eastern frontier and reinforced the defenses of Constantinople, but meanwhile Justinian was conspiring to make a comeback and after forming an alliance with the Bulgars succeeded in taking Constantinople and executing Tiberios. Justinian then continued to reign for a further six years. His treatment of Tiberios and his supporters had been brutal and he continued to rule in a manner that was despotic and cruel. He lost the ground regained by Tiberios in the east, and imposed his views on the Pope. However, before long he faced a rebellion led by Philippikos Bardanes. Justinian was captured and executed as was his son and co-emperor, Tiberius, thus extinguishing the Heraclian line. Justinian had taken the Byzantine empire yet further from its origins. He effectively abolished the historical role of Consul, merging it with Emperor, thus strengthening the Emperors' constitutional position as absolute monarch.
' rebellion extended beyond politics to religion, deposing the Patriarch Cyrus, reestablishing Monothelitism and overturning the Sixth Ecumenical Council, which in turn alienated the empire from Rome. Militarily the Bulgars reached the walls of Constantinople, and moving troops to defend the capital allowed the Arabs to make incursions in the east. His reign ended abruptly when an army rebellion deposed him and replaced him with Anastasius II.
Anastasius II, 713–715
Anastasius reversed his predecessor's religious policies and responded to Arab attacks by sea and land, this time reaching as far as Galatia in 714, with some success. However the very army that had placed him on the throne rose against him, proclaimed a new emperor and besieged Constantinople for six months, eventually forcing Anastasius to flee.
The troops had proclaimed Theodosius III as the new emperor, and once he had overcome Anastasius was almost immediately faced with the Arab preparations for the Second Arab siege of Constantinople, forcing him to seek assistance from the Bulgars. He in turn faced rebellion from two other themata, Anatolikon and Armeniakon in 717, and chose to resign, being succeeded by Leo III bringing an end to the cycle of violence and instability. It is surprising that the Byzantine Empire was able to survive, given its internal problems, the speed with which the Sassanid Empire collapsed under the Arab threat, and the fact that it was being threatened simultaneously on two fronts. However the strength of the military organization within the empire, and factional struggles within the Arab world enabled it to do so.