part of his reign, Ahmed I showed decision and vigor, which were belied by his subsequent conduct. The wars in Hungary and Persia, which attended his accession, terminated unfavourably for the empire. Its prestige was further tarnished in the Treaty of Zsitvatorok, signed in 1606, whereby the annual tribute paid by Austria was abolished. Following the crushing defeat in the Ottoman–Safavid War (1603–18) against the neighbouring rivals Safavid Empire, led by Shah Abbas the Great, Georgia, Azerbaijan and other vast territories in the Caucasus were ceded back to Persia per the Treaty of Nasuh Pasha in 1612, territories that had been temporarily conquered in the Ottoman–Safavid War (1578–90). The new borders were drawn per the same line as confirmed in the Peace of Amasya of 1555. Relations with Morocco During his reign the ruler of Morocco was Mulay Zidan whose father and predecessor Ahmad al-Mansur had paid a tribute of vassalage as a vassal of the Ottomans until his death. The Saadi civil wars had interrupted this tribute of vassalage, but Mulay Zidan proposed to submit to it in order to protect himself from Algiers, and so he resumed paying the tribute to the Ottomans. Ottoman-Safavid War: 1604–06 The Ottoman–Safavid War had begun shortly before the death of Ahmed's father Mehmed III. Upon ascending the throne, Ahmed I appointed Cigalazade Yusuf Sinan Pasha as the commander of the eastern army. The army marched from Constantinople on 15 June 1604, which was too late, and by the time it had arrived on the eastern front on 8 November 1604, the Safavid army had captured Yerevan and entered the Kars Eyalet, and could only be stopped in Akhaltsikhe. Despite the conditions being favourable, Sinan Pasha decided to stay for the winter in Van, but then marched to Erzurum to stop an incoming Safavid attack. This caused unrest within the army and the year was practically wasted for the Ottomans. In 1605, Sinan Pasha marched to take Tabriz, but the army was undermined by Köse Sefer Pasha, the Beylerbey of Erzurum, marching independently from Sinan Pasha and consequently being taken prisoner by the Safavids. The Ottoman army was routed at Urmia and had to flee firstly to Van and then to Diyarbekir. Here, Sinan Pasha sparked a rebellion by executing the Beylerbey of Aleppo, Canbulatoğlu Hüseyin Pasha, who had come to provide help, upon the pretext that he had arrived too late. He