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 only prevented from attacking Ctesiphon 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.* Greatrex–Lieu (2002), II, 217–227</ref> Heraclius restored the True Cross to Jerusalem with a majestic ceremony in 629.