soon died himself and the Safavid army was able to capture Ganja, Shirvan and Shamakhi in Azerbaijan. War with the Habsburgs: 1604–06 The Long Turkish War between the Ottomans and the Habsburg monarchy had been going on for over a decade by the time Ahmed ascended the throne. Grand Vizier Malkoç Ali Pasha marched to the western front from Constantinople on 3 June 1604 and arrived in Belgrade, but died there, so Sokolluzade Lala Mehmed Pasha was appointed as the Grand Vizier and the commander of the western army. Under Mehmed Pasha, the western army recaptured Pest and Vác, but failed to capture Esztergom as the siege was lifted due to unfavourable weather and the objections of the soldiers. Meanwhile, the Prince of Transylvania, Stephen Bocskay, who struggled for the region's independence and had formerly supported the Habsburgs, sent a messenger to the Porte asking for help. Upon the promise of help, his forces also joined the Ottoman forces in Belgrade. With this help, the Ottoman army besieged Esztergom and captured it on 4 November 1605. Bocskai, with Ottoman help, captured Nové Zámky (Uyvar) and forces under Tiryaki Hasan Pasha took Veszprém and Palota. Sarhoş İbrahim Pasha, the Beylerbey of Nagykanizsa (Kanije), attacked the Austrian region of Istria. However, with Jelali revolts in Anatolia more dangerous than ever and a defeat in the eastern front, Mehmed Pasha was called to Constantinople. Mehmed Pasha suddenly died there, whilst preparing to leave for the east. Kuyucu Murad Pasha then negotiated the Peace of Zsitvatorok, which abolished the tribute of 30,000 ducats paid by Austria and addressed the Habsburg emperor as the equal of the Ottoman sultan. The Jelali revolts were a strong factor in the Ottomans' acceptance of the terms. This signaled the end of Ottoman growth in Europe. Jelali revolts Resentment over the war with the Habsburgs and heavy taxation, along with the weakness of the Ottoman military response, combined to make the reign of Ahmed I the zenith of the Jelali revolts. Tavil Ahmed launched a revolt soon after the coronation of Ahmed I and defeated Nasuh Pasha and the Beylerbey of Anatolia, Kecdehan Ali Pasha. In 1605, Tavil Ahmed was offered the position of the Beylerbey of Shahrizor to stop his rebellion, but soon afterwards he went on to capture Harput. His son, Mehmed, obtained the governorship of Baghdad with a fake firman and defeated the forces of Nasuh