The Ottomans took advantage of Bocskai's uprising.
Lala Mehmed Pasha captured Esztergom on 3 October.
Bocskai's commander, Bálint Drugeth, prevented his Ottoman allies from entering Érsekújvár (now Nové Zámky in Slovakia) when he forced the defenders of the town to give in on 17 October.
Bocskai met Lala Mehmed Pasha at Pest on 11 November.
The Grand Vizier styled Bocskai king and gave a royal crown to him, but he refused to accept it as a royal insignia.

After the fall of Esztergom to the Ottomans, István Illésházy and other influential noblemen realized that only the Habsburgs were able to prevent the Ottomans from seizing new territories in Royal Hungary.
They persuaded Bocskai to start negotiations with Rudolph's brother, Matthias, who had decided to dethrone Rudolph.
Although the delegates of the eastern counties and the Hajdús still opposed the peace, the Diet authorized Bocskai to send his envoys to Vienna.
On 12 December, Bocskai granted collective nobility to 9,254 Hajdús and settled them in his estates in Szabolcs County.

Bocskai's envoy, Illésházy, reached a compromise during his negotiations in Vienna on 9 February 1606.
The royal court was ready to restore the traditional administration of Royal Hungary and confirm most liberties of the noblemen and burghers, but was unwilling to acknowledge the independence of Transylvania under Bocskai's rule.
On 4 April the Diet of Transylvania authorized Bocskai to sign a treaty with the Habsburgs, but in May the Diet of Hungary ordered Illésházy to continue the negotiations with Matthias.

The negotiations ended with the Treaty of Vienna, which was signed on 23 June.
The new treaty confirmed the right of the Protestant noblemen and burghers to freely practise their religion.
Bocskai was acknowledged as the hereditary prince of Transylvania, which was expanded to Szabolcs, Szatmár, Ugocsa, and Bereg Counties and the castle of Tokaj.
Bocskai confirmed the treaty in Kassa on 17 August.

Bocskai was willing to mediate a peace treaty between the Habsburgs and the Ottoman Empire.
On 24 November Rudolph issued a new proclamation, stating that the Principality of Transylvania could retain its independence even if Bocskai died without male issue.
The Peace of Zsitvatorok, which put an end to the Long Turkish War, was signed on 11 November.
The Ottomans took advantage of Bocskai's uprising. Lala Mehmed Pasha captured Esztergom on 3 October. Bocskai's commander, Bálint Drugeth, prevented his Ottoman allies from entering Érsekújvár (now Nové Zámky in Slovakia) when he forced the defenders of the town to give in on 17 October. Bocskai met Lala Mehmed Pasha at Pest on 11 November. The Grand Vizier styled Bocskai king and gave a royal crown to him, but he refused to accept it as a royal insignia.
After the fall of Esztergom to the Ottomans, István Illésházy and other influential noblemen realized that only the Habsburgs were able to prevent the Ottomans from seizing new territories in Royal Hungary. They persuaded Bocskai to start negotiations with Rudolph's brother, Matthias, who had decided to dethrone Rudolph. Although the delegates of the eastern counties and the Hajdús still opposed the peace, the Diet authorized Bocskai to send his envoys to Vienna. On 12 December, Bocskai granted collective nobility to 9,254 Hajdús and settled them in his estates in Szabolcs County.
Bocskai's envoy, Illésházy, reached a compromise during his negotiations in Vienna on 9 February 1606. The royal court was ready to restore the traditional administration of Royal Hungary and confirm most liberties of the noblemen and burghers, but was unwilling to acknowledge the independence of Transylvania under Bocskai's rule. On 4 April the Diet of Transylvania authorized Bocskai to sign a treaty with the Habsburgs, but in May the Diet of Hungary ordered Illésházy to continue the negotiations with Matthias.
The negotiations ended with the Treaty of Vienna, which was signed on 23 June. The new treaty confirmed the right of the Protestant noblemen and burghers to freely practise their religion. Bocskai was acknowledged as the hereditary prince of Transylvania, which was expanded to Szabolcs, Szatmár, Ugocsa, and Bereg Counties and the castle of Tokaj. Bocskai confirmed the treaty in Kassa on 17 August.
Bocskai was willing to mediate a peace treaty between the Habsburgs and the Ottoman Empire. On 24 November Rudolph issued a new proclamation, stating that the Principality of Transylvania could retain its independence even if Bocskai died without male issue. The Peace of Zsitvatorok, which put an end to the Long Turkish War, was signed on 11 November.
Stephen Bocskai