Justinian II (; ; 668/69 – 4 November 711), nicknamed "the Slit-Nosed" (; ), was the last Byzantine emperor of the Heraclian dynasty, reigning from 685 to 695 and again from 705 to 711. Like his namesake, Justinian I, Justinian II was an ambitious and passionate ruler who was keen to restore the Roman Empire to its former glories. However, he responded brutally to any opposition to his will and lacked the finesse of his father, Constantine IV. Consequently, he generated enormous opposition to his reign, resulting in his deposition in 695 in a popular uprising. He only returned to the throne in 705 with the help of a Bulgar and Slav army. His second reign was even more despotic than the first, and it too saw his eventual overthrow in 711. He was abandoned by his army, who turned on him before killing him. First reign Justinian II was the eldest son of Emperor Constantine IV and Anastasia. His father appointed him as his heir sometime after October 681, on the deposition of his uncles Heraclius and Tiberius. In 685, at the age of sixteen, Justinian II succeeded his father as sole emperor. Due to Constantine IV's victories, the situation in the Eastern provinces of the Empire was stable when Justinian ascended the throne. After a preliminary strike against the Arabs in Armenia, Justinian managed to augment the sum paid by the Umayyad Caliphs as an annual tribute, and to regain control of part of Cyprus. The incomes of the provinces of Armenia and Iberia were divided among the two empires. In 687, as part of his agreements with the Caliphate, Justinian removed from their native Lebanon 12,000 Christian Maronites, who continually resisted the Arabs. Additional resettlement efforts, aimed at the Mardaites and inhabitants of Cyprus, allowed Justinian to reinforce naval forces depleted by earlier conflicts. In 688, Justinian signed a treaty with the Caliph Abd al-Malik ibn Marwan which rendered Cyprus neutral ground, with its tax revenue split. Justinian could now turn his attention to the Balkans, where much imperial territory had been lost to Slavic tribes. In 687 Justinian transferred cavalry troops from Anatolia to Thrace. With a great military campaign in 688–689, Justinian defeated the Slavs of Macedonia and was finally able to enter Thessalonica, the second most important Byzantine city in Europe. The subdued Slavs were resettled in Anatolia, where they were to provide a