On 16 October 1677, Johann Christoph von Kindsberg, the Habsburg resident in Istanbul, reported what he considered to be very good news: the Ottomans had suffered a catastrophic defeat against the Russian army in Ukraine. In the attempt to seize Chyhyryn, the Russian-occupied capital of the Ukrainian Cossack state, they had lost half their army, all their artillery, and their entire baggage train. Kindsberg praised the extraordinary resilience of the Russian defenders of Chyhyryn, who had rendered a great service to the world of Christendom which “must rightly rejoice … that to everyone’s surprise the Muscovites demonstrated such courageous resistance … against the Turks.”Footnote 1 But most importantly, Kindsberg believed that the Russian victory signified the end of Grand Vizier Kara Mustafa’s designs against Hungary and the Habsburg Empire.Footnote 2 Throughout the previous summer, the grand vizier had encouraged Hungarian rebels who had assembled a formidable army in Transylvania and the Ottoman vilayets of Várad and Eger. They had just been waiting for the signal to invade; Ottoman troops had been standing by to help them. The expectation was that “all of Upper and Lower Hungary would voluntarily submit to the Ottoman Porte.” This would have been “the prelude to war” with the Habsburg Empire.Footnote 3
In the voluminous literature on the 1683 siege of Vienna, the so-called Russo-Turkish War (1677–81) is mentioned in only a few sentences.Footnote 4 There is no reflection on the deeper implications of this war for Habsburg, Hungarian, and European history.Footnote 5 Yet, Onno Klopp, whose opus magnum remains the unsurpassed masterpiece on the siege of Vienna, pointed out almost 150 years ago that the plan for the invasion of Hungary and the seizure of the Habsburg capital was already in place in early 1676.Footnote 6 Romanian historian Marie M. Alexandrescu-Dersca Bulgaru seconded Klopp 100 years later, citing Ottoman and Venetian sources. Indeed, my own work has recently provided evidence from Austrian and Hungarian archives that the plan began to be implemented in the spring and summer of 1676.Footnote 7 It is therefore legitimate to examine why the Ottomans abandoned a plan that had already been initiated by Kara Mustafa’s predecessor. Was it the sudden death of Grand Vizier Ahmed Köprülü (1661–76) who had promised Hungarian rebels for years that he would come to their rescue? Was it the takeover of the grand vizierate by Kara Mustafa whom the Habsburg court initially considered a peacemaker? Or was it the growing Russian threat on the northern flanks of the Ottoman Empire and in the Black Sea region? Or was it perhaps the defection of Ottoman-anointed Ukrainian Cossack leader Petro Doroshenko to the Kremlin in September 1676? Or were there other reasons?
This article focuses exclusively on the year 1677, the crucial period when the Ottomans began to shift their attention away from Hungary to Ukraine. How did it come about that the Ottomans invaded Ukraine? What led to their disastrous defeat at Chyhyryn? A detailed examination of these questions is the first purpose of this article. The intention is to meticulously reconstruct the stepping stones that had to be put in place before the Ottomans got stuck in the Ukrainian quagmire. The second purpose of this article is to explore how the decision to invade Ukraine and the Chyhyryn debacle affected the Hungarian insurgency that had been burning into a massive popular rebellion by 1676.Footnote 8 I will trace the internationalization of this insurgency as Hungarian rebels, desperate after the sudden death of their patron Köprülü, turned to French King Louis XIV and Polish King Jan Sobieski in despair. But most importantly, I will focus on the Hungarian envoys who flocked to the Porte to lobby for the Ottoman invasion of Hungary and the destruction of the Habsburg regime. The surprisingly cordial relations they developed with Kara Mustafa had long-term consequences for the Habsburg Empire. While these close relations could not prevent the outbreak of the Russo-Turkish War, they guaranteed that Kara Mustafa remained committed to protecting, sheltering, and arming the Hungarians. He maintained the legacy of his predecessor: the goal of seizing all of Hungary and Vienna (“The Golden Apple”) never receded from Kara Mustafa’s mind.
The historiography of the 1677 Ottoman invasion of Ukraine and its impact on Hungarian and Habsburg history is very scarce. Among Central European and Habsburg historians, almost complete silence prevails.Footnote 9 One finds hints in Zsolt Trócsányi’s work on the Transylvanian grandee Mihály Teleki, who stood in close communications with Hungarian and Transylvanian envoys at the Porte. László Benczédi has delved into the Hungarian archives, which unfortunately resulted in only one short posthumous article. It demonstrated that the year 1677 was a game-changer in Hungarian history. Hungarian envoys, Benczédi showed, stayed at the Porte for months against the backdrop of the Ukraine invasion. They met frequently with leading Ottoman dignitaries, who treated them amicably. When the devastating news from Chyhyryn arrived, Kara Mustafa received them and vowed that he would not abandon them and would provide help “no matter if there would be peace with the Muscovite or not.”Footnote 10 It is important to examine more closely these persistent Hungarian-Ottoman encounters and in particular the Hungarian envoys’ ties to Kara Mustafa.
Eastern European and Ottoman historians have also remained largely silent on the topic. Lubomyr Hajda, Andrzej Witkowicz, and Kahraman Şakul have written significant studies of the much larger, second Ottoman invasion of Ukraine, the so-called Chyhyryn campaign of 1678.Footnote 11 By comparison, the events of 1677 have remained a neglected stepchild of historical research.Footnote 12 Russian interpreters tend to see the 1677 invasion only as a prelude to the 1678 campaign. Tellingly, Boris Floria and Nikolai Smirnov, arguably the most knowledgeable interpreters of the period, cover the events of 1677 only in a few pages. A 2002 kandidatskaia dissertatsiia by Iafarova M. Rashidovna and a book chapter by Pavel V. Sedov are two notable exceptions. But they focus almost exclusively on Russian military mobilization and the battle for Chyhyryn.Footnote 13 This is a tradition that goes back to the great nineteenth-century Russian historian Sergei Solov’ev.Footnote 14 Polish historians in contrast have written primarily on the Polish-Ottoman War (1672–76) and the subsequent peace negotiations at the Porte.Footnote 15 Zbigniew Wójcik’s work, however, unravels the complicated geopolitical nexus of the Ukraine invasion, in particular the French-Habsburg conflict over Hungary, the Polish-Russian conflict over Ukraine, and the Ottoman-Polish peace negotiations (and the possibility of a joint Ottoman-Polish invasion of Ukraine).Footnote 16 Ukrainian historians also have almost completely neglected the study of the first Chyhyryn campaign. While there are several excellent studies of Hetman Petro Doroshenko (1665–76), arguably the Ottoman Empire’s most important Christian vassal in Eastern Europe, there is no focused study of Doroshenko’s successor Yurii Khmelnytsky, who played an important role in the 1677 Ottoman invasion.Footnote 17 The best study of the period remains the masterly monograph of the great Ukrainian historian and revolutionary Mykola Kostomarov.Footnote 18
Despite its scholarly neglect, I will argue that the 1677 invasion of Ukraine was a pivotal historical event with long-term consequences for Ukraine, Russia, the Ottoman Empire, the Habsburg Empire, and Hungary. I build my case on a large volume of sources from the Turcica Collection of the Habsburg Court Archives as well as little-studied document collections published by late nineteenth-century Hungarian, Polish, and Ukrainian scholars. To these one must add two remarkable volumes by the Romanian historian Ioan Hudita: a 1926 collection of documents from French archives and the French National Library, and his 1927 Sorbonne doctoral dissertation on Transylvanian-French and Hungarian-French relations. Hudita’s work holds some of the keys to the questions asked in this article.Footnote 19
The article comprises three parts: first, I explore how the Ottoman decision to invade Ukraine rather than Hungary came about (January–June 1677). Second, I examine what happened between the time when the Ottoman army invaded Ukraine and when news of military defeat arrived in Istanbul (June–September 1677). Finally, I will look at how the news of the disaster affected the future of Hungarian-Ottoman and Habsburg-Ottoman relations. Was the optimism that Habsburg resident Kindsberg expressed in his dispatch of 16 October 1677 justified?
Hungary or Ukraine? Months of Uncertainty
The Żurawno Armistice (17 October 1676), which ended more than four years of warfare between the Polish-Lithuanian Commonwealth and the Ottoman Empire, constitutes a major but unacknowledged juncture in European history. European courts and the wider reading public were eager to learn where the victorious Ottoman army would turn next. There was much speculation.Footnote 20 Some suggested Venice, others Russia, and yet others Hungary. Not a few believed that the war with Poland would be resumed in the spring as it was considered doubtful that the Polish court would be willing to accept the loss of Podolia and most of western Ukraine.Footnote 21 The Kremlin was almost certain that Russia would be the next target; in fact, Russian military preparations had already started before the armistice. Large troop contingents were deployed to Kyiv and the eastern parts of Ukraine. And in August 1676 Russian troops crossed the Dnipro River to seize Chyhyryn, the capital of Ottoman-supported Cossack Ukraine. The troops forced the Ottoman-appointed hetman, Petro Doroshenko, to abdicate and swear allegiance to the tsar. For almost ten years Doroshenko had been a loyal servant of the Porte; it seemed unlikely that the Ottomans would accept his removal.Footnote 22
The Habsburg court in contrast anticipated that the Ottoman army would now turn against Hungary. For years its agents had gathered intelligence about the intentions of Grand Vizier Köprülü; he had entered the Polish war reluctantly as his real goal was to fulfill the dream of Süleiman the Magnificent, that is, to seize Vienna and destroy the Habsburg Empire. He regularly met with Hungarian rebel leaders and promised them military support once the Polish war was over. French intelligence agreed with this assessment; in fact, the French court became convinced that Köprülü had initiated peace negotiations with Poland in preparation for an invasion of Hungary.Footnote 23
Hungarian rebels also anticipated that the Ottomans would now finally come to liberate them from the Habsburg yoke. For more than ten years they had resisted the imposition of a brutal Counter Reformation, military occupation, war taxes, mass arrests, and the random confiscation of estates. Indeed, Habsburg rule had already been overthrown twice in the eastern parts of the Hungarian Kingdom in major popular revolts. The Ottomans had encouraged these revolts, and Ottoman troops had in fact participated covertly in the second revolt, which had led to a veritable war of extermination against Catholic clergy, Habsburg soldiers, and Vienna-appointed officials. Some compared the Habsburg reconquest of these provinces to the Spanish occupation of the Netherlands during the sixteenth century.Footnote 24
Unlike the Hungarians, the Ukrainians no longer viewed the Ottomans as liberators in late 1676. Formerly they had welcomed Ottoman troops with bread and salt; Orthodox clergy had prayed for the sultan’s well-being; and the Ottoman-anointed Petro Doroshenko had been a folk hero. In the late 1660s, his Ottoman-backed invasion of the Russian-occupied parts of Ukraine led to the collapse of the Russian regime and the mass slaughter of Russian soldiers and administrators. However, the Ottoman invasions of western Ukraine in 1674 and 1675, which pushed out both Russians and Poles, had brought untold suffering such as the massacres and enslavement of towns that had recognized the tsar. When Doroshenko abdicated as hetman of Ukraine in September 1676 he was no longer a popular figure, or at least this is how it seemed to most Ukrainians and outside observers. This was not true in large parts of Hungary, where the Ottomans were still seen as saviors, and thousands of refugees had fled into Ottoman territory for protection. In late October 1676, many flocked to a rebel army that stood poised to invade Habsburg Hungary with Ottoman and Transylvanian support. It was commonly understood that this invasion would be followed by a major Ottoman campaign against the Habsburg Empire in the spring of 1677.Footnote 25
This most likely would have happened had Grand Vizier Köprülü not died suddenly on 3 November 1676. Upon his death, a cloud of depression, despair, and anxiety descended upon Hungarian exile communities in the vilayets of Várad and Eger as well as the Ottoman vassal state of Transylvania. The exiles’ Transylvanian supporters, including the Ottoman-appointed Prince Mihály Apafi, shared this sense of gloom and doom. Daniel Absolon, the Hungarian exiles’ emissary to Poland, captured the mood in a series of letters from December 1676: “I cannot describe … how much sorrow has taken hold of our hearts. Due to the death of the [grand] vizier, the Transylvanian prince has changed his resolution which has thrown everything into confusion … . The nobility is in despair and the soldiers are furious; they will now return as victims to the meat market of Austrian cruelty (macellum Austriacae crudelitatis) … . The suspect substitution [of Köprülü] with a new and hostile [grand vizier] and the suspension of an operation that was already under way have left everyone in a state of grief and conturbation.”Footnote 26 The Transylvanian Calvinist Ferenc Rhedey, a strong supporter of the Hungarian exiles, put it this way: “My mind has gone dead seeing the change at the Porte and I confess that I see only a great misfortune for us … . The prince is completely terrified … and the poor Hungarian compatriots are all in confusion and chaos.”Footnote 27
Everything now depended on the new grand vizier Kara Mustafa. The French court remained convinced that the new vizier was as eager to invade Hungary as his predecessor; information that suggested otherwise was registered but French diplomats thought that Kara Mustafa could be won over quickly by Hungarian emissaries, the French Ambassador Charles Francois Olier Nointel, and Transylvanian bribes. At first glance, this assessment seemed much too optimistic.Footnote 28 Russian observers, for example, saw that the victorious Ottoman army was not moving in the direction of Hungary but remained camped over the winter along the Danube River facing Ukraine. And intelligence from Kyiv, the eastern parts of Ukraine, and Crimea seemed to confirm that the Ottomans were determined “to go to war with all forces at their disposal over the Little-Russian province” of the tsar’s empire.Footnote 29 Habsburg assessments of the situation were carefully optimistic: the Ottoman army was so exhausted after four years of war against Poland that an attack on Hungary was unlikely before 1678. Also, Resident Kindsberg was pleasantly impressed by Kara Mustafa’s friendliness: “[The new grand vizier] let me know that I was the first among all [foreign] representatives … and he would be happy to see me any time … . My first impression is … that he seeks to demonstrate peace-loving thoughts.” But Kindsberg also warned that Vienna must not trust the Porte, remain well-armed, and maintain strict vigilance along the Hungarian borders. It was worrisome that the French were prodding the Porte to invade Hungary. No one doubted that war in Hungary was inevitable but now at least the Vienna court could dare to hope that it would not occur immediately.Footnote 30
The Hungarian exiles were—contrary to their initial expectations—in a better position than they thought. Kara Mustafa allowed them to have a resident ambassador; this had not been permitted by his predecessor. While Ukrainians had had their own resident for almost ten years, Hungarian emissaries constantly had to come and go.Footnote 31 The Hungarian resident was none other than László Kubinyi, one of the principal leaders of the anti-Habsburg revolts of the early 1670s. He was a radical anti-Catholic ready to fight the Habsburgs to the death. He also had good relations with Ottoman dignitaries in Várad and Eger who likely recommended him to Kara Mustafa. Kubinyi quickly became the linchpin of Hungarian lobbying at the Porte. He briefed other Hungarian emissaries, who started flocking to the Porte almost immediately after Köprülü’s death. He also got them in touch with Ottoman dignitaries who were sympathetic to the Hungarians’ cause. Kubinyi worked in tandem with Transylvanian resident János Buda, other Transylvanians at the Porte, and Transylvanian emissaries.Footnote 32 Their joint promotion of the Hungarian cause paid off; in January 1677 they could already report that the original plan for an invasion of Hungary was not off the table: “As far as the state of Hungarian affairs is concerned the grand vizier is governing the territories (habenas) of this vast empire according to the rules and dispositions of his predecessor. He is most inclined to expand these [territories] with the help of the Transylvanian prince and would not be opposed to the operation if the Polish king did not still have some second thoughts about the peace …”Footnote 33 In other words, Kara Mustafa had not rejected the Hungarian exiles’ plans; he was only waiting for the opportune moment to implement them. This moment would come once he could be sure of the stability of the Żurawno Armistice.Footnote 34
Habsburg resident Kindsberg was well aware of the ongoing danger of war in Hungary. He did everything possible to discredit the Hungarian rebels in the eyes of Kara Mustafa and the Ottoman elite. They were not the Porte’s true friends, he insisted, but preferred to become subjects of the French crown. This explained why they were conspiring with the French court and had just offered the Hungarian crown to the Marquis de Béthune, Louis XIV’s ambassador in Poland and the Polish king’s brother-in-law. Also, they caused bloodshed and destruction not just through their constant raids into Habsburg Hungary but also inside Ottoman Hungary where many of them lived in the vilayets of Várad and Eger. He demanded that the Porte cut all its ties with the Hungarians and that Resident László Kubinyi be removed. It seemed that the Porte was receptive: Kubinyi was denounced in a public ceremony and chased away; the pasha of Eger was ordered to lend no further support to Hungarian rebels; and a special emissary was sent to the border region to investigate whether the French were actually colluding with the Hungarians and whether Hungarian refugees living on Ottoman territory had harmed the sultan’s subjects.Footnote 35 Kindsberg felt reassured by these measures and came away believing that Kara Mustafa was genuinely invested in peace. His first audience with the new grand vizier on 22 February 1676 was an astonishingly positive encounter after the rude treatment Kindsberg had experienced by the previous grand vizier. As he reported to Vienna, “the vizier proved himself to be really friendly and demonstrated a better and more sincere mental disposition than his predecessor.”Footnote 36
However, it is doubtful that Kindsberg’s interventions made any real difference. László Kubinyi may have left, but he soon returned and continued lobbying for Ottoman military intervention. Also, nothing changed on the ground along the Habsburg-Ottoman borders. The Vienna court was puzzled by Kindsberg’s optimism; intelligence from the Hungarian borderlands told a different story. As Emperor Leopold put it in a letter to Kindsberg on 9 April 1677, “the offers of the new grand vizier sound good … but they are of little use for observing calm and good neighborly relations.” The rebels remained in their living quarters across Ottoman and Transylvanian lands surrounding Upper Hungary.Footnote 37 Kindsberg was told to push harder urging “the complete removal and extermination (Vertilgung)” of the Hungarian rebels.Footnote 38 On the same day, Count Raimondo Montecuccoli, the President of the Aulic War Council and commander-in-chief of the Habsburg army, wrote to Kara Mustafa, demanding that the Porte not provide any support to the Hungarians. Their continued presence on Ottoman territory was a troubling violation of the existing peace treaty.Footnote 39
Montecuccoli had good reasons to be worried. The danger in the Hungarian borderlands had not decreased after Köprülü’s death despite the great relief that his demise had caused in Vienna. In fact, within a few months, the situation seemed to have become more dangerous than ever. This was largely due to the close contacts of Hungarian rebels with France and Poland (about which Kindsberg complained to Kara Mustafa). These contacts were not new but they had evolved secretly in the past because Grand Vizier Ahmed Köprülü had not permitted them. Kara Mustafa, by contrast, either did not care or actually welcomed them;Footnote 40 it certainly was a blatant lie when he told Kindsberg that he had never heard about them. These contacts occurred right under his nose at the Porte where Hungarian and Transylvanian emissaries met regularly with the French ambassador Nointel.Footnote 41 Nointel in turn communicated with the French ambassador in Poland and the French court. Louis XIV himself took an astoundingly active interest, as did the Polish King Jan Sobieski. They hosted Hungarian rebel leaders at their courts and regularly wrote letters to Prince Apafi and other Transylvanian supporters of the Hungarians. On 11 December 1676, Louis XIV ordered Béthune to “carry the war against the [Habsburg] emperor into Hungary.” Given the state of military affairs in the Rhineland and the Netherlands this was of pivotal significance.Footnote 42 Enormous logistical planning went into this undertaking: the transport of large amounts of silver and gold coins (via Gdańsk), the recruitment of soldiers from the disbanding Polish army, the dispatch of French officers, and the embedding of these officers and French undercover agents among Hungarian rebels. Louis XIV instructed Béthune “that you must do everything that can make it possible for the diversion in Hungary to succeed.” The goal was to launch an invasion through Hungary in the direction of the Habsburg Empire’s hereditary provinces “so that [the House of Austria] sees itself obliged to withdraw … the largest part of the army which is currently engaged on the Rhine.”Footnote 43
More research needs to be conducted on French and Polish involvement in the Hungarian revolt against the Habsburg Empire. What is important here is that French agents closely observed the Porte’s intentions via-a-vis Hungary and Ukraine. Given their embeddedness at the core of Hungarian resistance and Nointel’s close relations with Hungarian emissaries, they were in many ways better informed than the Habsburgs. The French court understood very well that nothing could be achieved in Hungary without the Porte’s support. Ideally, the Ottoman army itself would move against the Habsburg Empire; this would avoid the challenges of regularly supplying and paying an army in the remote reaches of Hungary. Clearly, before French and Polish soldiers crossed into Hungary the priority was to “stop the [Turk] from taking false steps” in the direction of Ukraine.Footnote 44 This approach seems to have yielded results. On 12 February Béthune reported that the Porte would invade Hungary immediately after it was assured of the firmness of the Polish peace.Footnote 45 And on 3 April 1677, the French foreign minister in Paris acknowledged receipt of good news from Nointel (dispatched in the first half of March): “It seems that the Prince of Transylvania has arranged things with the new grand vizier … . One could [therefore] believe that the Porte favors [the Hungarian malcontents] and, having finished the war with the King of Poland, is willing to support this [new war] which naturally offers itself against the [Habsburg] Emperor.”Footnote 46 Even when Nointel reported shortly afterward that Ukraine would be the target of an Ottoman invasion, he also emphasized that the bulk of the Ottoman army would invade Hungary under the leadership of Sultan Mehmed IV.Footnote 47
French, Polish, Habsburg, Transylvanian, Ukrainian, and Russian sources reported for the first time in March 1677 on the Porte’s interest in Ukraine. News that the sultan had made Yurii Khmelnytsky “Prince of Little Russia and Zaporozhia”Footnote 48 suddenly emerged seemingly out of nowhere; until then nobody at the Porte had talked about Khmelnytsky, who had been wasting away in an Ottoman prison since 1670.Footnote 49 Khmelnytsky’s appointment was accompanied by increased talk about liberating Ukraine from the Russian occupation. Did the Porte want foreign courts to think that the invasion of Hungary was definitely off the table? This certainly was the hope of the Habsburg court and the fear of everyone else involved in the Hungarian crisis. Khmelnytsky, son of the legendary founder of the Cossack Hetmanate, was a surprising choice: he was largely unpopular in Ukraine. As a defrocked monk he did not command much respect among Ukrainian Orthodox clergy (who played pivotal roles in the anti-Russian resistance). But more importantly, he had alienated Ukrainians of all ranks by plotting with the Crimean Tatars to overthrow the well-liked Hetman Petro Doroshenko. Nevertheless, the sultan believed Khmelnytsky’s bold promises that all of Ukraine would welcome the Ottomans as liberators, the Russians would not offer any resistance, and both western and eastern Ukraine would be united under the sultan’s auspices.Footnote 50
Habsburg resident Kindsberg described in vivid detail how the Porte became engrossed in grandiose imperial visions of an Ottoman-ruled Ukraine.Footnote 51 Kara Mustafa probably shared these visions but he treaded carefully. When the sultan essentially declared “war against the Muscovites” by decreeing the empire-wide collection of the war tax (sursat), Kara Mustafa hesitated: he asked the Crimean khan to intercede with Moscow and convince the Kremlin to voluntarily leave the Ukrainian lands that had once been ruled by Doroshenko. Unlike the sultan, who blindly believed in the superiority of the Ottoman army, Kara Mustafa knew that Greek merchants returning from Kyiv had warned about massive deployments of Russian troops.Footnote 52 Still, Ottoman military preparations for a potential invasion of Ukraine were already under way in March 1677. Ottoman agents deployed to Ukraine to explore the difficult logistics of supplying a large army moving over vast distances. These same agents distributed proclamations by Hetman Khmelnytsky calling on Ukrainians to rise against the Russians in the name of the sultan; the Kremlin and its local supporters feared that these agents would make contact with the popular Doroshenko who was then under house arrest in Baturyn (ca. 130 miles northeast of Kyiv). In mid-March 1677 Doroshenko was promptly removed from Ukraine to Moscow.Footnote 53
Despite the sultan’s enthusiastic support of Khmelnytsky and Russian fears of an imminent invasion, the final decision to move the Ottoman army into Ukraine rather than Hungary was not taken before May 1677. The decision was the result of factional disputes that appear to have pitted the sultan (who favored war in Ukraine) against Kara Mustafa and his supporters (who wanted to turn attention to Hungary). We only get glimpses of these conflicts in the non-Ottoman sources.Footnote 54 But we can clearly identify some of the pressure groups that tried to influence the outcome of the Porte’s internal power struggle: on the one hand the Hungarian exiles, their Transylvanian protectors, and their French supporters; on the other hand the Habsburg court and its Dutch General Estates (both crucial parties in the French-Habsburg war [1673–78]). The Polish emissaries at the Porte took a somewhat ambivalent position: they did not contradict the Hungarians and their sympathizers, but they also suggested to Kara Mustafa and other Ottoman dignitaries that an invasion of Ukraine would be a good idea. While hesitant to join such an invasion (which the Żurawno Armistice obliged them to), they believed that the Ottoman army would be able to push the Russians out of Ukraine once and for all. This would allow the Poles to reclaim the parts of Ukraine lost in the Russian-Polish war (1654–67). Historian Zbigniew Wójcik described this position as a naive fallacy. Did the Polish court really believe the Ottomans would share parts of their Ukrainian conquests without Polish military participation?Footnote 55
In spring 1677 the mood of Hungarian emissaries at the Porte was optimistic. On 29 April Menyhért Keczer and Gábor Kende, prominent leaders of the Lutheran and Calvinist resistance,Footnote 56 had a promising meeting with Kara Mustafa’s majordomo (kahya, kihaja): “After we showed him our letters of accreditation he treated us with great humanity and inquired about everything. He left us with the answer that we should wait a little, he would take us in front of the grand vizier …” On 5 May, they met again with the majordomo and learned that Kara Mustafa was still awaiting the return of a special emissary “whom he had sent to the [Hungarian] border pashas in our cause.” In the meantime the majordomo “greatly assured, consoled, and encouraged us while urging us to trust fully in him because we would receive with all certainty an answer according to our wish. We will come to your help within a short while.” The Hungarian emissaries rejoiced. Finally, they could hope for the preservation of their “once very glorious and now already waning and poor nation in exile that had suffered so much.” They were “convinced that God will bring an end to the days in which our liberation was in darkness: today or tomorrow the sun will rise.” Great hope took hold of them especially as “anybody [at the Porte] who can open his mouth is giving us only encouragement.” The signs were all positive. They simply had to trust in God that everything would turn out according to their wishes.Footnote 57
The Hungarians had good reason to be optimistic. This is further illustrated by Gábor Kende’s chance encounter in the sultan’s stables with Agha Süleiman, the former majordomo of Grand Vizier Köprülü and still a leading figure at the Porte.Footnote 58 Agha Süleiman “met [Kende] with affection and asked [him] to sit down right next to him.” He then assured Kende that even the sultan was positively inclined to support the Hungarians. “I have talked a lot with the emperor about your affairs and we have come to a positive resolution … Be in good spirits! Until now I have been like a father to you and I will remain so from now on.” Yes, Ukraine was a problem. Doroshenko had created a real mess by defecting to the tsar; he was “a dog and behaving like a dog (ebelkedik).” But it was really nothing. They should not worry about it.Footnote 59 The Hungarian emissaries were also encouraged by Kara Mustafa’s response to the Dutch resident’s complaints about the support they were receiving from the French crown. On 3 May the resident demanded that the Porte stop the French from infiltrating Hungary. This was not just a maneuver to deflect Habsburg troops from defending the Netherlands. No, it was an existential threat to the Ottoman Empire: “When the French establish themselves in Hungary and Transylvania they will not be satisfied … they will want to advance through Wallachia into Turkey … . It is therefore necessary that Your Excellency takes the opportune remedy, that is, to chase away Gabriel Kende and the other [Hungarian] rebels.”Footnote 60 The Hungarians learned about the meeting several days later: Kara Mustafa not only had rebuffed the Dutch warning but he had broken out laughing: “[Louis XIV] is only a king. Why should I be afraid of him? So many are standing against him: the German emperor, kings and princes, and you as well. And that is how things stand, and thus they told him to leave.”Footnote 61 Clearly, there was no reason to worry. Kara Mustafa was still on the Hungarians’ side and apparently did not mind the increasingly intense Hungarian-French involvement.Footnote 62
There are two noteworthy, though puzzling, pieces of evidence that confirm the Hungarians’ assessment of the situation: first, the assignment of Khalil Pasha, who had been the governor of Kamenets (and formerly Silistria) until early 1676, to the vizierate of Buda in March 1677; and second, the decision to appoint Ahmed Pasha, governor of Silistria, as beglerbey of Bosnia. These were arguably the two most important Ottoman players in Ukrainian affairs. Ahmed Pasha had overseen Ottoman communications with Ukrainian Cossacks and Khalil Pasha had been pivotal in organizing the 1672, 1673, and 1674 Ottoman invasions of Ukraine. Why would these experienced veterans of past invasions be appointed to the two most important Ottoman governorships facing the Kingdom of Hungary (including Croatia)? Habsburg resident Kindsberg feared the worst: “Khalil Pasha of Buda is the most evil of all border pashas. When he was in Silistria, he fomented war with Poland. We must remain vigilant to ensure he does not start a fire.”Footnote 63 This is precisely what seemed to be happening: Khalil Pasha was still on his way to Buda when Hungarian and Croatian rebel leaders flocked to him in Belgrade.Footnote 64 Neither Khalil Pasha nor Ahmed Pasha acted according to the official Ottoman rhetoric of peace and friendship. Instead of curbing Ottoman and rebel raids into Habsburg territory—as purportedly instructed by Kara Mustafa—they allowed them to continue. In fact, the Janissaries and Hungarian rebels coordinated operations and combined forces.Footnote 65
Habsburg resident Kindsberg observed these developments with increasing apprehension. He was outraged that the Porte wined and dined the Hungarian emissaries “while at the same time promising me … that they will be punished for their crimes.”Footnote 66 He was worried that the pashas of Várad and Eger, long the Hungarians’ advocates at the Porte, were taking the emissaries’ side: they complained bitterly about a brutal Habsburg raid against the Ottoman tributary town of Debrecen, a major refuge of Hungarian fugitives. The screams (Geschrei) of the victimized residents of Debrecen and the pashas’ complaints had the effect “that the grand vizier has gotten a bad impression of the Germans.”Footnote 67 Moreover, a trusted informant at the Porte warned Kindsberg that Kara Mustafa was not serious about invading Ukraine. The differences with Moscow would be resolved by negotiation. A significant portion of the Ottoman army would, therefore, deploy along the Hungarian borders: “They will take such positions that they can advance against [the Germans] at the suitable time with the rebels leading the way. The unruly Janissaries and sipahis who are in the habit of creating tumults in Istanbul will be added to [existing] border regiments and one wants to see what they can do.” In brief, the Ottoman Porte was ready to launch an attack on the Habsburg Empire. This would not be a major military campaign but undoubtedly a prelude to war. Kindsberg urged the Vienna court to send reinforcements to Upper Hungary and he begged God “to grant a general peace in Christendom and humiliate the Turks’ arrogant threats.”Footnote 68
It seems that his informants misled Kindsberg. Hungarian, Transylvanian, and French sources tell a more complicated story. A military campaign against Hungary was certainly considered well into May 1677, but by the end of the month, the sultan’s determination to go to war in Ukraine had won out. In early May the Hungarian envoy Gábor Kende observed that the Ottoman Imperial Council, which included top military leaders and ministers, was assembling in regular sessions of major importance (nagy divánkozások). He had no idea what was being discussed but remained hopeful that the decision would be in the Hungarians’ favor. He observed that the sultan was present in all meetings.Footnote 69 At about the same time a French agent in Transylvania reported to Béthune in Warsaw that “the prince of Transylvania had received secret orders to assist the Hungarians.” This Ottoman- and French-supported invasion of Hungary would “not only change the affairs of the [Habsburg] emperor but ruin all of his projects along the Rhine.”Footnote 70 Meanwhile, French ambassador Nointel intensely lobbied Kara Mustafa for war against the Habsburg Empire. It was a unique opportunity that must not be missed: Hungarian malcontents, the prince of Transylvania, and neighboring pashas were ready to invade; they just needed minor reinforcements. Unlike Kindsberg, however, Nointel grasped that the Porte was gradually moving away from war “against the House of Austria.” On 17 May he reported that the behavior of the Porte’s leading ministers had become mysterious; there was now even talk about deposing Prince Apafi, the Hungarians’ principal supporter. A week later Nointel recorded the Porte’s fear that an Ottoman invasion of Hungary would generate peace in Christendom and “turn all the [military] forces of Germany against it.”Footnote 71 He sensed that the Ottomans had chosen Ukraine as their next target and proposed to Kara Mustafa on 27 May that he allow the French to take charge of the Hungarian question.Footnote 72 On 1 June Transylvanian resident János Buda reported that the Ottoman army stood poised to invade Ukraine.Footnote 73
What exactly transpired behind the scenes during the divan sessions and in the larger factional struggles at the Porte may never be known, as Ottoman documentary records and letters that could provide insights likely no longer exist.Footnote 74 All we have are chronicle accounts written ex post facto, often many years after the Ottoman invasion of Ukraine.Footnote 75 The chroniclers’ narratives do not mention the possibility of an invasion of Hungary; this is quite a contrast to the evidence cited here, which strongly suggests that the Ottoman Porte was committed to helping the Hungarian insurgents overthrow the Habsburg regime. If we can trust the conversation between Gábor Kende and Agha Süleiman, even the sultan was inclined to prioritize Hungary. Was Kara Mustafa outvoted in the divan sessions? Was he put in his place by the sultan? This is unlikely, given the superior power he enjoyed after systematically placing his clients in positions of influence, both at the Porte and in Hungary.Footnote 76 Was Kara Mustafa afraid that an invasion of Hungary would lead to a universal peace in Christendom, as suggested by French ambassador Nointel? Was he taken in by the grand visions of Ottoman imperial expansion that Kindsberg found circulating at the Porte? Or was he concerned about the intensifying Russian military deployments in eastern Ukraine, about which he had been informed by Greek merchants?
We do not know the answer. However, a closer look at the circumstances under which the Ukraine invasion was launched and developed provides some clues. Two issues in particular stand out: first, the poor intelligence that was guiding the invasion and led the Porte to greatly overestimate its own military capabilities; second, the failure to allocate maximum military resources to the campaign. It is telling that Ottoman troops stationed in Hungary were not redeployed to Ukraine (as they had been during the 1672 invasion of Poland). It seems that the invasion of Ukraine was undertaken because the Porte was unable—or unwilling—to comprehend that it would be facing a major military power in Muscovy. The assumption was that the Kremlin would cave in and abandon Ukraine without a fight; if not, an easy military conquest would follow. This double illusion of a quick Russian withdrawal or a swift Ottoman victory was likely the principal driving force behind the decision to launch the Ukrainian campaign. The invasion of Hungary was never called off; in fact, it could have been launched at any moment. Nobody at the Porte seems to have expected that the Russian army would defend Chyhyryn.
The Ottoman Invasion of Ukraine and What it Meant for Hungary
On 16 June 1677, Vizier Ibrahim “Shaitan” Pasha, the victor of the Polish campaign, led 45,000 Ottoman troops across the Danube. The invasion of Ukraine had finally commenced, more than six months after the sultan and Ottoman strongmen in the periphery of Ukraine had started pushing for it. At about the same time, an army of approximately 20,000 Tatars, led by Khan Selim Girei, left Crimea and began moving north.Footnote 77 According to Russian historian S. F. Oreshkova, the invasion did not have the character of a well-organized Ottoman campaign but of a large punitive expedition. There was no declaration of war. The principal purpose was to regain control over the western parts of Ukraine (which had formed an Ottoman vassal state under Hetman Doroshenko since 1669).Footnote 78 Contrary to rumors circulating in Poland, the Porte had no intention of pushing into eastern Ukraine. For example, the Ottoman garrison of Azov did not participate in the campaign; if the Ottomans had been eager for a major war these troops would have pushed in the direction of Astrakhan to prevent the conjunction of Russian and Persian troops.Footnote 79 Nevertheless, one must consider that the Ottomans placed at least some of their garrisons along the Black Sea on high alert. The commander of Kyzykermen (Gazikermen),Footnote 80 Beg Huszein Muravev, achieved a remarkable stunt (with loads of money): he convinced the Zaporozhian Cossacks, the independent Ukrainian warrior communities along the southern reaches of the Dnipro, to cut their ties with Moscow. It seems, therefore, that the Ottoman leadership at least left open the possibility of advancing into eastern Ukraine or, as the Kremlin feared, into the Russian heartlands.Footnote 81
The invading army was, from the beginning, guided by misleading assumptions and false intelligence. It was commonly assumed that the inexperienced new tsar, Fedor Alekseevich, who had just ascended the throne at the age of eighteen, would not be willing to go to war against the mighty Ottoman army. Additionally, Ottoman commanders vividly remembered that Russian troops had previously avoided combat. In 1674, for example, the Russian army had rapidly withdrawn to the other side of the Dnipro when Ottoman troops, under Kara Mustafa, had advanced into western Ukraine.Footnote 82 Again and again, Ottoman dignitaries at the Porte told Hungarian, Habsburg, Transylvanian, and French observers that the Russians would quickly cave in and withdraw.Footnote 83 No one could imagine that the Kremlin would confront the seemingly invincible army of the padishah that had recently defeated Habsburgs, Venetians, and Poles. This wishful thinking was fostered by the fabulist Yurii Khmelnytsky, who had apparently convinced the sultan that Ukrainians would flock to him—after all he was the son of Bohdan Khmelnytsky, the founder of the Ukrainian Hetmanate. The people were reportedly eager to be liberated and would welcome the Ottomans with open arms.Footnote 84 Ottoman spies in Ukraine did not correct this misapprehension; they failed to report the presence of Russian troops and the Kremlin’s wider mobilization. The garrison of Chyhyryn, they claimed, was small and could be overwhelmed in three days. Hearing this Ibrahim Pasha predicted that he would continue the advance into Ukraine and seize Kyiv (which was allegedly even more poorly defended).Footnote 85 In short, the Ottomans blundered into Ukraine in an almost complete information vacuum.Footnote 86
Everything seemed to go according to expectations for the next six weeks. Russian troops did not engage, one Ukrainian town after another swore allegiance to the sultan, and Cossack garrisons surrendered their fortresses without a fight. There were warning signals, such as the failure of Yurii Khmelnytsky to enlist more than a few hundred Cossacks and the mass desertions of Ottoman soldiers.Footnote 87 The rank-and-file of the Ottoman army did not close its eyes to reality. Had they been told by Ukrainian Cossacks what was in store for them? As one Turkish prisoner told his Russian captors: “Many Janissaries fled on their way from the Danube to Chyhyryn because they knew that the city of Chyhyryn was heavily fortified and [the Russians] would not surrender. They would offer brutal resistance of the kind that never happened in Poland.”Footnote 88 If Ottoman intelligence had yielded better results, Ottoman army leaders would have known that the Kremlin had ordered large-scale mobilizations. An army of 52,000 Russian and Ukrainian troops was on its way to defend Chyhyryn; many thousands of additional soldiers were standing nearby in reserve.Footnote 89 From the Kremlin’s perspective, the Ottoman invasion was a major threat to the survival of its emerging empire. Tsar Fedor Alekseevich called for a crusade to defend the “Little Russian people” (malorossiiskii narod) against “the enemy of the Holy Cross.” He declared a veritable holy war against the forces of Islam that were coming to exterminate the Orthodox faith.Footnote 90
Few sources reveal the disconnect between glorious imperial fantasy and grim reality more than the order of surrender that Ibrahim Pasha issued to the defenders of Chyhyryn on 5 August 1677, the day after his troops had surrounded the fortress. This remarkable document is worth citing in detail; it was crafted in bookish Church Slavonic (with East Slavic elements) and may have been composed by the defrocked monk Khmelnytsky:
“Let it be known to you that the Most Sublime and Most Powerful Emperor among the monarchs of the universe, my merciful master, has [in the past] conquered Ukraine with his saber and [military] force. When Doroshenko defected to the Muscovite state you found the town empty and entered Chyhyryn castle. The Most Sublime Emperor … has now sent Yurii Khmelnytsky, [son] of a proper progenitor (vlasnogo dedicha),Footnote 91 that he rule and be the master over all of Ukraine from border to border … . Do not fight with us and surrender the town. Take along everything that you arrived with including your people and return to your own homeland (v svoiu zemliu). Be assured … in the name of the Crimean khan, ourselves, and the entire army, that you can leave in good health and without any humiliation. But if you do not obey us you will be defeated by sword and fire with God’s help. Do not be angry later that you did not announce [your surrender] in time.”Footnote 92
Ibrahim Pasha could not imagine that he would become engulfed in three weeks of siege warfare and that a large Russian army was on its way to relieve Chyhyryn.
The Ottomans did not suffer similar illusions about Hungary. They were accurately informed about the miserable state of the Habsburg army and the seething discontent of the Hungarian population. Hungarian pashas had opened their lands to peasants, townsmen, Protestant clergy, and nobles fleeing army terror, high war taxes, and religious persecution. Settlements of Hungarian fugitives could be found not only in the border regions but also in the heartlands of Ottoman Hungary. Many of the soldiers who had escaped from Habsburg border garrisons (including German soldiers) had flocked to warrior communities such as Mezőtúr and Dévaványa, more than a hundred miles south of the Habsburg fortress line.Footnote 93 These soldiers formed the backbone of the Hungarian resistance; their mass mutiny in 1672 had forced the Habsburg regime to surrender nearly all important fortresses in Upper Hungary. They regularly raided deep into the heartlands of Habsburg Hungary, often accompanied by Ottoman troops with whom they had developed close relations. In June 1677, for example, major raids engulfed the hinterlands of Kassa (Kaschau, Košice), the Habsburg military and administrative capital of Upper Hungary.Footnote 94 The names of these soldiers’ commanders, many of whom were veterans of the 1672 revolt, often appear in Hungarian and Transylvanian correspondence;Footnote 95 if one could organize these runaway soldiers and raiders into a disciplined army, Habsburg power would collapse like a house of cards. This was precisely the plan of Louis XIV and his agents in Poland and Transylvania. As the Porte’s attention swung from Hungary to Ukraine the French invasion plans became increasingly attractive. The key question, however, was if Kara Mustafa would allow such an undertaking.
There cannot be any question that Hungarians, Transylvanians, Poles, and French were getting ready for the invasion of Habsburg Hungary just as the Ottoman army started moving into Ukraine. On 2 June, Prince Apafi ordered the mobilization of Transylvanian troops to defend the country’s borders against “the German predator [that] keeps biting our faithful residents every day.” Cavalry and infantry units soon gathered near the Hungarian border; they were well-equipped with weapons and other provisions.Footnote 96 On 15 June Daniel Absolon, the Hungarian envoy to Poland, announced that 3,000 Polish troops were ready to cross the Carpathians with a strong mandate from King Jan Sobieski, “whose heart’s wish was to move Hungarian affairs forward” as soon as possible. The troops were well-equipped and paid with French money.Footnote 97 4,000 additional troops were promised by Duke Stanisław Herakliusz Lubomirski, a Polish magnate who was the overlord (starosta) over thirteen Upper Hungarian towns which the Habsburg court had pawned to the Polish Crown. The placement of Polish troops in Habsburg Hungary was a frightening prospect to the Vienna court, which promptly dispatched vast amounts of money to hire soldiers away from Lubomirski.Footnote 98 Yet, thousands of Hungarians, both within Habsburg and Ottoman territory, were already armed and ready to move. According to a secret Warsaw treaty negotiated in late May 1677 between Louis XIV and the Hungarian exiles, the French crown was committed to paying about 10,000 armed Hungarian malcontents with good money. The treaty stipulated that 9,000 cavalry and 6,000 infantry “must be ready in the month of July to take action against Austria.”Footnote 99
The Ottomans were informed about these dramatic developments. The first to complain was the pasha of Várad; he was not happy that the Hungarian rebels he had sheltered on his lands were now being recruited with French money. Shortly afterward, Vizier Khalil Pasha of Buda warned Prince Apafi not to act against an edict (ferman) of the sultan which had granted the Hungarians hospitality but not permission to launch an invasion without the Porte’s consent.Footnote 100 By mid-June 1677, the news reached the Porte, and the Habsburg resident intensified his efforts to discredit the Hungarian envoys still residing in Istanbul. In particular, he denounced their ongoing visits to the French ambassador Nointel.Footnote 101 The Porte’s Hungarian interpreter warned the envoys to be careful and they decided that “French matters must [now] be handled with great care and secretly.” However, there is no evidence that they had anything to fear from Kara Mustafa. Gábor Kende certainly anticipated the worst and on 18 June observed that yet another powerful pasha had been executed on order of Kara Mustafa.Footnote 102 He was terrified that a similar fate was in store for the Hungarian emissaries. Yet, nothing happened. In fact, three days later the envoys reported that they were treated “with satisfactory esteem … and believe[d] with complete certainty that [they] would no longer be deprived of their hope which [they] had placed in the mercy of God.”Footnote 103 Had Kindsberg been wrong when he reported that Kara Mustafa despised the French king and his ambassador Nointel? Emperor Leopold, who was well informed about French machinations in Hungary, wondered whether this new grand vizier “did not share the antipathy of his predecessor toward the French?” He urged Kindsberg to use bribes. Perhaps this was the best way to get real results with Kara Mustafa.Footnote 104
It is interesting that Kara Mustafa claimed ignorance about the French-sponsored mobilizations on the Habsburg-Ottoman borders when he received Kindsberg in audience on 18 July. He insisted that Prince Apafi would never dare to get involved in such an attack without his permission; in fact, he had followed up on Kindsberg’s earlier complaints and given orders to investigate but reported that “not the least indication of such machinations had been found.”Footnote 105 Kara Mustafa’s behavior is puzzling. If we can believe the sultan’s translator, a friend of the Hungarians, he was ready to receive the Hungarian envoys in audience on 20 or 21 July. They would surely be dispatched to Hungary with a positive answer. But the audience was promptly canceled after the meeting with Kindsberg. Gábor Kende feared the worst. But again nothing happened to the Hungarians.Footnote 106 Interestingly, however, the Transylvanian resident was threatened with decapitation if he did not tell the truth about French intentions.Footnote 107 Alexander Maurocordatos, the powerful dragoman of the Porte, warned Prince Apafi in no uncertain terms “that it was not proper to undertake anything without the Most Sublime Porte’s consent.” French claims to the Hungarian crown and a foreign army on the sultan’s territory were absolutely unacceptable. Apafi must immediately send a high-ranking emissary to Kara Mustafa to provide “clear and lucid information.” Kara Mustafa’s majordomo followed up with similar warnings.Footnote 108 This barrage of threats put the Transylvanian court into a state of panic. Apafi and other Transylvanian grandees who had been strong supporters of the Hungarian exiles suddenly froze and demanded an immediate stop to the invasion set to commence on 27 July.Footnote 109
Apafi’s order to stop the French-sponsored invasion angered the Hungarian insurgents, French officers, and Polish soldiers. To be more exact, the invasion was indefinitely postponed.Footnote 110 But why? Did the initiative come from Kara Mustafa? Or were Apafi and his Transylvanian clients afraid that their plan would be used as a pretext to depose them? These questions remain to be investigated. I have found no evidence that Kara Mustafa was intimidated by Kindsberg’s threat to end the Habsburg-French war and turn the Habsburg army against Hungary, nor that he was afraid that the French would establish a beachhead in Hungary, as the Dutch resident had warned. Was he concerned that the Russians would declare war? Did he know that European diplomats in Moscow were pushing the Kremlin to do precisely that? There is little evidence that the Porte was concerned about the outcome of the Ukrainian campaign. The Hungarians were told not to worry. The majority of the Cossacks had reportedly joined the Ottoman-appointed hetman, and “the Muscovite (az muszka) did not want to get into a fight with the Turkish emperor.”Footnote 111 Habsburg resident Kindsberg also reported that the Ottomans were confident the Russians would give in and avoid combat. Indeed, a Transylvanian envoy was told in late July 1677 that the Muscovites had withdrawn their troops from Chyhyryn.Footnote 112
Kara Mustafa may have stopped the French invasion plan because he was still ccontemplating an Ottoman attack on Hungary. On 26 July 1677, Prince Apafi, who had been briefed on the latest intelligence from the Porte, expressed suspicions that “the Porte itself was beginning to embark on this undertaking; they keep mentioning Győr.”Footnote 113 Kindsberg learned that Kara Mustafa had commissioned a Venetian architect to prepare large plaster models of Győr (Raab) and Komárom (Komorn) fortresses, the two most important border castles protecting Vienna.Footnote 114 Habsburg military intelligence picked up similar talk in Upper Hungary which was likewise eager for Ottoman intervention. The Aulic War Council’s analysts explained the importance of this information to Emperor Leopold: “The safety of the [Austrian] lands and Vienna depends mostly on [these fortresses]. During the last century when the Turks laid siege to Vienna, they had previously seized [them].” A note scribbled in the margins, possibly written by Leopold himself, commented: “We know very well that these are the bulwarks designed to preserve Vienna.”Footnote 115
In early August 1677, Kara Mustafa threatened to go to war if Vienna did not promptly compensate the population of Debrecen for damages suffered in the spring raid. It seems that he was fishing for a casus belli, as the Habsburg court had done nothing to provide restitution.Footnote 116 Instead, administrators of the Aulic Court Chamber, the Hungarian Chancellery, the Hungarian Chamber, and other offices assembled documents (such as old charters and tax receipts) to prove that Vienna had legitimate jurisdiction over Debrecen.Footnote 117 Kara Mustafa could not care less, claiming that the Habsburg emperor had no jurisdiction whatsoever in Debrecen, which had belonged exclusively to the Porte since the times of Süleiman the Magnificent.Footnote 118 According to Kindsberg “the vizier has completely changed in mood and behavior … . His inclination is evil and one must assume that he will find reason and occasion to break with Your Majesty with the help of the Hungarian rebels.”Footnote 119 Kara Mustafa was likely urged by Ottoman commanders and pashas in Hungary to invade as soon as possible.Footnote 120
According to Kindsberg, the Hungarian insurgents on Ottoman and Transylvanian territory played a crucial role in Kara Mustafa’s thinking. He believed that their envoys’ continued residence in Istanbul explained why the Porte was becoming engulfed in “a general cry for war (allgemeines Kriegsgeschraÿ) against Hungary about which [Ottoman] border soldiers are jubilant.” The only way to stop the outbreak of war was “to remove these evil people from the Porte.”Footnote 121 Kindsberg tried everything to discredit them in the summer of 1677 but without success.Footnote 122 The fact that the Hungarian exiles had offered the Hungarian crown to different Polish candidates and finally to Louis XIV’s ambassador in Warsaw did not diminish their good standing.Footnote 123 While Kindsberg and other European ambassadors became disgusted with Kara Mustafa’s “inhumane capriciousness” there is no sign that the Hungarian envoys shared this opinion.Footnote 124 They were increasingly impatient and complained about their high expenses, but they understood that the future of Hungary hinged on their presence in Istanbul. They continued to believe that a positive answer would soon come. After all, the Porte had promised that it “would dispatch them as quickly as possible with sufficient help.”Footnote 125 On 23 August 1677 French ambassador Nointel, with whom the Hungarian envoys were in close touch, reported they had been told that “they would receive satisfaction within five days.”Footnote 126
For Kindsberg, Kara Mustafa was leaning toward invading Hungary in the summer of 1677.Footnote 127 Why did this not happen? One important answer must be sought in the arrival of increasingly troubling news from Ukraine.Footnote 128 The first signs came already in mid-July. On 18 July, French ambassador Nointel reported that the Ottomans were in communication with the Swedes in an apparent attempt to push them into attacking the Muscovites. Clearly, the hope that the Russians would quickly sue for peace had not come true.Footnote 129 On 25 July, a Transylvanian nobleman reported rumors that the Muscovites had inflicted a serious defeat on Turkish and Tatar troops.Footnote 130 The Porte made every effort to maintain a wall of silence about any setbacks. The Hungarian envoys and Kindsberg continued to hear only success stories and not that much of Ukraine had been laid waste after years of warfare. Khmelnytsky understood this; according to a Russian informant he stated: “I’d rather sit in prison than to live in a desert, because all of Ukraine has been devastated.” This meant that food supplies for the army had to be transported in long wagon trains; ships likely carried grain from the fertile Danube region along the Prut and Dnistro Rivers. These were time-consuming and complicated operations.Footnote 131 Other troubling realities were also kept secret:Footnote 132 Khmelnytsky’s failure to attract more than a small number of Cossacks, the refusal of the Tatar khan to participate in the campaign (he feigned illness), the lack of battle-readiness and low morale of many Ottoman soldiers,Footnote 133 and the massive mobilizations of Russian and Ukrainian [!] Cossack troops to defend Chyhyryn.Footnote 134
Under these circumstances, an invasion of Hungary would have been a very risky undertaking. However, it is important to emphasize that it was not canceled but only temporarily postponed while the Porte carefully monitored the outcome of the Chyhyryn campaign. Polish and French observers still believed that the invasion of Hungary could happen at any time and agreed with Kindsberg. Nointel meanwhile continued to feed Louis XIV information about Kara Mustafa’s eagerness to invade Hungary. On 27 August 1677, the Polish King Jan Sobieski, who relied on Hungarian and French informants, wrote to the Habsburg resident in Warsaw that “assisting [the Hungarians] is so dear to [the Ottomans’] hearts that the Muscovite wars make less progress.”Footnote 135 Sobieski’s observation is interesting, as he seemed to attribute the news of alleged Ottoman setbacks in Ukraine (first circulating in July) to the Porte’s lack of commitment. He appeared to agree with the opinions of Habsburg and Hungarian observers that the real target of Kara Mustafa’s imperial ambitions was Hungary and not Ukraine. Yet, nobody seems to have anticipated the possibility of a major military disaster for the Ottoman army. Minor setbacks by a relatively small and under-equipped invasion army were to be expected. But what if the Russians gained a major victory? Could Kara Mustafa still go ahead with the invasion of Hungary?
Terrible News: The Chyhyryn Disaster and its Meaning
The first inklings of the unfolding disaster arrived at the Porte in early September 1677 after at least three weeks en route. Even before the siege of Chyhyryn had begun, the Ottoman army was already in trouble. Food supplies were low and expected bad weather raised the fear that the entire army could perish due to hunger and rain.Footnote 136 By mid-September, all Ottoman illusions that the Russian army would surrender Chyhyryn without a fight had collapsed. On 12 September 1677 French resident Nointel informed Louis XIV that “there was no way to turn back anymore”; the Turks were stuck in the Ukrainian quagmire.Footnote 137 News of the full scope of the disaster did not arrive before the end of September; in a three-day battle in late August, the Ottoman army had suffered almost 12,000 casualties, with thousands more taken prisoner.Footnote 138 Crowds of Turkish captives were marched along the roads in chains. According to Russian eyewitnesses, the rest of the Ottoman army beat a hasty retreat: “[They] burnt their camp, abandoned their grenades, their entire food supplies, their artillery train, and fled.” Herds of buffaloes and oxen were left behind; the gravesites of nearly 2,000 fallen Ottoman soldiers were found nearby. Thousands more perished in the Ukrainian steppe during the retreat.Footnote 139 News of the catastrophe was hidden from Habsburg resident Kindsberg for more than two weeks until mid-October; he then wrote immediately to Vienna and triumphantly described the defeat in detail.Footnote 140
Kindsberg and the Vienna court breathed a sigh of relief, as the Ottoman disaster had prevented a Habsburg military catastrophe in Hungary. Both Kindsberg and Emperor Leopold believed, or at least hoped, that the aggressive Kara Mustafa had permanently disqualified himself and would be replaced by a friendlier grand vizier. Kindsberg invoked God’s help to bring about a change that “would lead to a completely different and calmer government.” He reported on 16 October that there were indeed strong signs that Kara Mustafa was greatly disliked. The outbreak of a fire in Istanbul that destroyed 2,000 houses and damaged Kara Mustafa’s residence was taken as a bad omen. An astrologer predicted that the grand vizier would die on 17 November.Footnote 141 Two weeks later, things seemed to have gotten even worse: “One [now] hears public lamentations against the grand vizier for carelessly leading the Ottoman Porte into a confused war. [They complain] that it was irresponsible to have thrown away many millions for provisions and munitions because of Chyhyryn which is merely a stone rock (ein blosser Steinfelsen).”Footnote 142
It is stunning how differently Hungarian envoys and their French supporter, Ambassador Nointel, perceived the Chyhyryn disaster. Although this should have ended their hopes for an Ottoman or at least Ottoman-supported invasion of Hungary, this was not the case. On 28 September, several days after news from Ukraine had arrived, Kara Mustafa received Gábor Kende and Menyhért Keczer in a private audience (without the Transylvanian resident).Footnote 143 The meeting was so secret that it was missed completely by Habsburg spies and Vienna’s supporters at the Porte.Footnote 144 Transylvanian sources also remain largely silent about the meeting.Footnote 145 The full scope of the surprisingly friendly, even warm, encounter with the grand vizier is only revealed in a letter of the French ambassador Nointel to Louis XIV and the diary of Imre Thököly (who quotes from a letter from the Hungarian envoys). According to the version in the Thököly diary Kara Mustafa gave the following speech:
“Your cause had already been prepared and you would very definitely have been helped last summer, but the relationship between the Cossacks and our soldiers broke down.Footnote 146 It pleased God to arrange it in this way and we cannot do anything about it. But in accordance with your wishes we will order the prince of Transylvania to be ready in the spring to help you; and we will also help. Until then we will take care of you, your wives, and your children. We have given orders to the pashas of Temesvár, Várad, and Eger to provide you with living quarters augmenting [these] with the sancaks between Gyula and Temesvár.”Footnote 147
Kara Mustafa also gave permission to carry out the planned French-supported military operations that had been hanging in the balance since early summer.Footnote 148
Months of Hungarian and French lobbying had paid off.Footnote 149 The Hungarian envoys departed on 30 September; the next day Nointel was summoned by the Reis Effendi, an intimate of Kara Mustafa, to discuss the conditions under which the Ottomans would be ready to invade Hungary. If we can believe the Reis Effendi the sultan needed to be convinced to go to war against the Habsburg Empire instead of Russia.Footnote 150 This would require 150,000 silver and gold coins (escus) of French money and a commitment not to make peace with Vienna along the Rhine without the Porte’s consent. The Reis Effendi, who insisted that he had always personally been in favor of an Ottoman invasion of Hungary, tried to convince Nointel that such an arrangement would be so advantageous that the French king could not reject it.Footnote 151 Perhaps the Reis Effendi’s proposal was not more than one of Kara Mustafa’s extortion schemes. But there can be little doubt that Kara Mustafa had not given up his intention to go to war against the Habsburg Empire in Hungary.Footnote 152
The humiliating defeat of the Ottoman army had interrupted but not erased Kara Mustafa’s plan to invade Hungary. The question was if this plan could be reactivated as he had promised the Hungarian envoys. News from Ukraine revealed that the Russian army was consolidating its positions in and around Chyhyryn, upgrading the citadel’s fortifications, and recruiting fresh troops. Clearly, the Kremlin seemed to be getting ready for a showdown with the Porte.Footnote 153 Could this be ignored? And could the great humiliation and shame of the Porte be left without a response?Footnote 154 A debate was raging behind the scenes and Kindsberg was determined to influence the outcome in favor of the Habsburg Empire.Footnote 155 He distributed large bribes to the Reis Effendi, Kara Mustafa’s majordomo, the Porte’s dragoman, and other leading dignitaries. But he also used scare tactics: if the Russians were not stopped in Ukraine, he claimed, they would inevitably advance into Podolia, Moldavia, and Wallachia. In fact, the Orthodox populations of these territories were eagerly awaiting their liberation, and “the Turks would be driven back across the Danube.” That this dire scenario was not a entirely invented is suggested by the fact that Wallachian and Moldavian elites had only recently begged the Kremlin for assistance. Still, Kindsberg must have sensed the limits of what he could achieve at the Porte. He therefore urged Vienna to do everything possible to convince the Kremlin to continue the war against the Ottomans. Habsburg diplomats should warn the Russian tsar that the Turks were not only determined to seize Kyiv but also to advance on Moscow.Footnote 156
The future of Hungary and Ukraine would be decided at the Porte, and neither France nor the Habsburg Empire could influence the outcome. Kindsberg and the Vienna court continued to face uncertainty. War in Hungary remained a real possibility, especially when it appeared that the Kremlin was eager to avoid wider war with the Ottoman Empire. In November 1677 Tsar Fedor Alekseevich dispatched a special ambassador to Istanbul “in order to renew diplomatic relations which had been interrupted at the beginning of the 1670s.” In a personal letter, the tsar assured Sultan Mehmed IV that he wanted a return to “the age-old friendship (iskonnaia druzhba)” that had existed between the two realms in the past.Footnote 157 The Habsburgs thus had good reason to remain nervous. As Emperor Leopold put it in a letter to Kindsberg dated 17 November 1677, “when they complete a peace agreement with … the Muscovites such a large multitude of troops [already assembled] cannot remain inactive. Instead, according to the grand vizier’s primary intention … they are simply to pour out into our Kingdom of Hungary which likely would mean the outbreak of open [war].”Footnote 158 Kindsberg concurred: a Russo-Ottoman compromise (Vergleich) would “immediately prompt [the Turks] to turn their entire military power against Hungary.”Footnote 159 The next six months would show, however, that the Chyhyryn disaster haunted the Porte to such an extent that Hungary receded into the background. In April 1678 Sultan Mehmed IV declared war against Muscovy instead of the Habsburg Empire. How this came about must be explored elsewhere.
Conclusion
The Ottoman invasion of Ukraine in June 1677 was a significant historical event not just in the histories of Ukraine, Russia, and the Ottoman Empire, but also in the histories of Hungary and the Habsburg Empire. With it, the Ottomans missed a unique chance to seize all of Hungary and advance against Vienna at a time when the Habsburg court was unprepared. Its best troops were deployed along the Rhine, those remaining in Hungary were overstretched and exhausted after years of confronting a hostile population and constant raids from Ottoman territory. The Habsburgs’ position in Hungary reached its nadir just as Ottoman troops entered Ukraine: thousands of Hungarian rebels who had fled to Ottoman and Transylvanian territories stood poised to go on the offensive against the Habsburg army. They had the support of Ottoman pashas, Transylvanian rulers, and the French government, which dispatched large amounts of money and recruited thousands of soldiers in Poland. Hardly ever before did the Habsburgs face such a serious threat in Hungary. If the Ottomans had invaded Hungary instead of Ukraine, Habsburg rule would likely have collapsed like a house of cards.
This finding challenges Russian historians’ standard claim that the invasion of Ukraine was inevitable.Footnote 160 The Russian threat to the Ottoman Empire was undoubtedly growing in Ukraine and the Black Sea region. Nevertheless, Kara Mustafa intended to follow his predecessor’s disengagement strategy in Ukraine. The problem was that, unlike the open-minded Köprülü, Kara Mustafa was less well-informed, or willing to be informed, about realities on the ground in Ukraine. For example, he ignored the large Russian troop contingents stationed in and around the Cossack capital. More importantly, however, he failed to see that the Ukrainian people, unlike the Hungarians, were no longer eager for the Ottomans to come to their rescue. Ten years earlier they had risen en masse but more recently they had experienced the devastations inflicted by repeated Ottoman campaigns.
The decision to invade Ukraine instead of Hungary was the result of a gradual and contested process; it was opposed by many at the Porte and even Kara Mustafa was ambivalent. The sources examined here do not mention Ukraine before March 1677; Yurii Khmelnytsky, the new Ottoman-anointed “Prince of Little Russia,” appeared suddenly out of nowhere. He told tales about the ease with which all of Ukraine, not just the western parts, could be taken by the Ottoman army. It seems that Kara Mustafa shared the sultan’s imperial visions for Ukraine but lacked his eagerness to invade. For example, he entrusted the Crimean khan with a mission to Moscow to convince the Kremlin to abandon the Cossack capital; he seemed invested in a peaceful resolution. Also, Kara Mustafa never wavered in his support of the Hungarian rebels, allowed them to seek help in France and Poland, and welcomed their emissaries to the Porte. That Kara Mustafa considered pursuing military intervention in Hungary is further suggested by the transfer of the pashas of Kamenets and Silistria to Buda and Sarajevo. Both pashas had played crucial roles in past Ottoman invasions of Ukraine. But they were transferred from the Ukrainian to the Hungarian borderlands because that was where their military experience was needed. In the end, the sultan’s vision of an easy campaign in Ukraine won out.
When the Ottomans invaded Ukraine, they did not expect the Russians to fight. This means that the sultan’s opinion which was not based on good intelligence but the unrealistic visions of Khmelnytsky had prevailed. Why Khmelnytsky’s views were accepted remains a historical puzzle. Was it imperial hubris after more than a decade of victories over the Habsburgs, Venetians, and Poles? Paradoxically, the Porte’s relegation of Ukraine to a sideshow likely explains why Kara Mustafa continued to promise Hungarian rebels that Ottoman help would soon come. There are strong indications that he planned to launch an invasion of Hungary in the summer of 1677, despite the fact that 45,000 Ottoman soldiers were already in Ukraine. It is unclear how many Janissaries and sipahis would have participated; at a minimum, the pashas and fortress commanders of Ottoman Hungary could have gone on the offensive. This would have transformed the undeclared border war into a full-blown conflict. Hungarian emissaries had long assumed that a few thousand Ottoman soldiers would be enough to help them overthrow the Habsburg regime. The common understanding was that the bulk of the Ottoman army would then occupy Hungary and advance upon Vienna.Footnote 161
Perhaps the most surprising discovery in my data is the close relationship between the Hungarian envoys and Kara Mustafa. Kara Mustafa treated them much better than the diplomatic representatives of major European states; he met with them at least twice in private audiences, had them dressed in kaftans, and provided them with money for their sustenance. They maintained regular communication with Kara Mustafa through his majordomo and other court dignitaries, who treated them with remarkable respect. The friendly relations between the envoys and Kara Mustafa disconcerted Habsburg resident Kindsberg, who tried everything to discredit them and have them expelled. The French ambassador Nointel in contrast supported the Hungarian envoys’ contacts with Kara Mustafa; it is interesting that Kara Mustafa, who is known to have despised Nointel, did not prevent these envoys from regularly meeting with the Frenchman. In fact, after the Chyhyryn disaster, the Hungarians convinced the grand vizier that French support for their liberation struggle did not mean that they would stop considering themselves subjects of the sultan. When they left the Porte in late September 1677, they had the grand vizier’s permission to accept French money and military support. This would have been inconceivable under Kara Mustafa’s predecessor Ahmed Köprülü.
Kara Mustafa embraced the Hungarians more closely than Köprülü. The grand vizier had hardly taken power in November 1676 when he allowed the Hungarians to send a permanent resident to the Porte. This enabled them to keep the grand vizier informed about the precarious situation of the Habsburg army, the successes of Hungarian raids, and the readiness of Hungarians to rise again in revolt. They were suddenly in a much better position to lobby for Ottoman intervention. While they still drew on the support of Transylvanian diplomats, their status had been significantly upgraded. This became obvious when Menyhért Keczer and Gábor Kende, respected veterans of the fight against the Habsburgs, arrived at the Porte in April 1677. They essentially moved in and stayed until the end of September 1677 and were present when crucial decisions about the future of Hungary and Ukraine were debated. They tried to influence Kara Mustafa and likely contributed to the grand vizier’s readiness to consider the invasion of Hungary, despite the fact that a significant portion of the Ottoman army was already in Ukraine. When Ottoman intervention was no longer possible after the Chyhyryn disaster the Hungarian envoys nevertheless received the grand vizier’s commitment that the Ottoman army would assist them in the next spring.
The influence of Hungarian insurgents and their diplomatic representatives on Kara Mustafa’s unfailing determination to seize Vienna was noted many years ago by Walter Leitsch. He pointed out that Imre Thököly, whom the Porte recognized as the leader of the Hungarian revolt in 1681, revealed the unvarnished truth that the Habsburgs had been unable to put down a massive rebellion for more than a decade; this “was bound to lead the grand vizier to the conclusion that the emperor was extraordinarily weak.”Footnote 162 But it is important to recognize that Imre Thököly and his envoys could never have been so successful without benefiting from connections that were already in place. The figure of the Hungarian envoy Menyhért Keczer stands out in this regard: according to Nointel he singlehandedly won over Kara Mustafa with “his powerful mind, wisdom, and great eloquence.”Footnote 163 Keczer happened to be Imre Thököly’s guardian and mentor, and few, if any, had a stronger influence on the young magnate’s mind.Footnote 164 Keczer was an avid TurcophileFootnote 165 who knew how to please Kara Mustafa; he undoubtedly made Kara Mustafa aware that Thököly was a much more reliable ally and more popular leader in Hungary than the fickle Transylvanian prince Apafi.Footnote 166 Thus, the Hungarian mission of 1677 laid the foundation for the ascendancy of Thököly after the end of the Russo-Turkish War.
For the Ottomans, the invasion of Ukraine was a blunder of world-historical proportions. A little-known diplomatic struggle unfolded over the winter of 1677–78: on the one side stood the Habsburgs and the Vatican who were pushing the Kremlin to give up its peace initiative; on the other side stood France and its European allies, who tried to push the Ottomans to war in Hungary.Footnote 167 Imre Thököly was not optimistic; when he received the news of the Chyhyryn disaster in October 1677 he wrote in his diary that all hopes for a serious Ottoman engagement in Hungary had been indefinitely postponed.Footnote 168 This was not at all clear to the Habsburgs who had to wait many more months before it emerged that the Ottomans could not extricate themselves from conflict with Russia. This war assumed continental proportions and drew in Kalmyks, Uzbeks, Tatars, and other steppe peoples; it also provided the breathing space that the Habsburg Empire so desperately needed to hold onto Hungary. By the end of the Russo-Turkish War in 1681 the Habsburgs had repaired their fortresses, made peace with France, upgraded their manpower, made major concessions to the Hungarians, and formed an international alliance to defend Vienna. One wonders what would have happened to Hungary and the Habsburg Empire had the Ottoman army not become bogged down in the Ukrainian steppe. What if Kara Mustafa had given the green light for an invasion of Hungary in the summer of 1677?