Although Austria lay open and defenseless, entering that country was not even considered. Indeed, Yanıkkale (Győr) fell (29 March 1598). However, Grand Vizier and Commander-in-Chief Damad İbrahim Pasha took Kanije (22 October 1600) and drove the Germans out of south-western Hungary. Tiryaki Hasan Pasha miraculously inflicted a terrible rout on a very large German army that had come to take this fortress (18 November 1601). The Turks also recaptured İstolni-Belgrad (Székesfehérvár) (6 August 1602), and after they defeated the German army off Budin (Budapest) (18 November 16027), Grand Vizier and Commander-in-Chief Sokulluzade Lala Mehmed Pasha brilliantly took Estergon back from the Germans (3 October 1605). Tiryaki Hasan Pasha also received the surrender of the fortress of Uyvar. But the state had grown weary of this war, which had lasted 132 years. Before these successes could be overshadowed, it agreed to enter into peace negotiations. The Peace of Zsitvatorok was signed (11 November 1606). It is a meaningful agreement in this respect: the tribute that the German emperor paid to Turkey was abolished. Until then Turkey had claimed that there was no emperor in Europe other than the padishah, and had made even the German emperor accept this claim; from that date on the Turks, too, acknowledged that the ruler of Germany was an emperor. Turkey lost no territory, but apart from one or two fortresses it gained nothing either. Yet until then the Imperial Council (Divan-ı Hümayun) had never accepted any agreement that did not bring the state a radical gain. This means that the Turkish world state was still a world state, but it had lost its power of growth and its energy to leap forward, and had entered a period of stagnation.

This agreement was signed in the reign of Ahmed I (1603-1617), son and successor of Mehmed III. In this period the Celali revolts continued. Grand Vizier and Commander-in-Chief Kuyucu Murad Pasha struggled with these revolts for nearly 5 years, until his death (5 August 1611). But the roots of the anarchy ran deep and its causes were manifold. Despite acting with severity, he achieved only temporary successes. For those who rebelled were not enemies, but former beylerbeys, sanjak beys and sipahi officers who gathered Anatolian Turks around themselves. In the Mediterranean, if not dominion, then at least superiority was maintained. The Mediterranean expedition of Grand Admiral (Kaptan-ı Derya) Damat Halil Pasha and his landing of troops on Malta (13 May-28 November 1614) were very successful.

Upon the untimely death of Ahmed I at a young age, his eldest son Sultan Osman was pushed aside through a palace intrigue, and Sultan Ahmed's brother Mustafa I (1617-1618) was placed on the throne in his stead. But since he was found to be insane, he was deposed after 3 months. Osman II (1618-1622) became padishah. In his reign relations with Poland broke down. The Polish armies were routed in the pitched battles of Jassy and Turla (20 September and 7 October 1620). Osman II personally set out on campaign. He advanced as far as Hotin (Khotyn) (3 September 1621). Although the Treaty of Hotin (6 October 1621) contained articles that would have brought the Kingdom of Poland back under Turkish protection, it could not be put to use because of the internal problems of the Turkish state.