holy war. In the Caucasus he inflicted a defeat on an army led by a Persian-allied Arab chief and then won a victory over the Persians under Shahrbaraz. Following a lull in 623, while he negotiated a truce with the Avars, Heraclius resumed his campaigns in the East in 624 and routed an army led by Khosrau at Ganzak in Atropatene. In 625 he defeated the generals Shahrbaraz, Shahin and Shahraplakan in Armenia, and in a surprise attack that winter he stormed Shahrbaraz's headquarters and attacked his troops in their winter billets. Supported by a Persian army commanded by Shahrbaraz, together with the Avars and Slavs, the three unsuccessfully besieged Constantinople in 626, while a second Persian army under Shahin suffered another crushing defeat at the hands of Heraclius' brother Theodore. Meanwhile, Heraclius formed an alliance with the Western Turkic Khaganate, who took advantage of the dwindling strength of the Persians to ravage their territories in the Caucasus. Late in 627, Heraclius launched a winter offensive into Mesopotamia, where, despite the desertion of the Turkish contingent that had accompanied him, he defeated the Persians at the Battle of Nineveh. Continuing south along the Tigris, he sacked Khosrau's great palace at Dastagird and was prevented from attacking Ctesiphon only by the destruction of the bridges on the Nahrawan Canal. Khosrau was overthrown and killed in a coup led by his son Kavadh II, who at once sued for peace, agreeing to withdraw from all occupied territories. Heraclius restored the True Cross to Jerusalem with a majestic ceremony in 629. Aftermath The devastating impact of this last war, added to the cumulative effects of a century of almost continuous conflict, left both empires crippled. When Kavadh II died only months after coming to the throne, Persia was plunged into several years of dynastic turmoil and civil war. The Sasanians were further weakened by economic decline, heavy taxation from Khosrau II's campaigns, religious unrest, and the increasing power of the provincial landholders. The Byzantine Empire was also severely affected, with its financial reserves exhausted by the war and the Balkans now largely in the hands of the Slavs. Additionally, Anatolia was devastated by repeated Persian invasions; the Empire's hold on its recently regained territories in the Caucasus, Syria, Mesopotamia, Palestine and Egypt was loosened by many years of Persian occupation. Neither empire was given any chance to recover, as within a few years