By the end of 1700, Charles XII had successfully defended Sweden and driven all enemy troops from Swedish territory. Instead of pursuing the defeated Russian army in order to destroy it completely and also force his opponent Tsar Peter I to make peace, the king now turned to his third opponent, the Saxon Elector and King of Poland, in order to wrest the Polish royal throne from him. There has been much speculation about the Swedish king's exact motives, and this decision of his has been almost unanimously criticised by later military historians as a gravely mistaken decision, since the opportunity was missed to finally destroy the defeated Russian army and thus force Russia to make peace. The decisive factor for the turn towards Poland was probably Charles XII's personal motives. As a convinced Lutheran, the Swedish king harboured a personal hatred for Augustus the Strong, who had deviated from the Lutheran faith of his ancestors for reasons of power calculation and converted to Catholicism in order to become King of Poland. Moreover, Charles XII saw Augustus the Strong as the real warmonger against Sweden. The Livonian noble opposition to the Swedish crown under Reinhold von Patkul had relied above all on Polish-Saxon support. In addition, the Swedish king fatally underestimated Russia's military potential and believed that he could defeat the Russian army anew at any time, as he had done at Narva in 1700. Karl considered the military development in the Baltic to be of secondary importance.
The Swedish king turned his main army towards the south and in the following 5 years of the War of Dethronement passed through almost the entire Polish territory. Alongside this, however, further battles for dominance in Courland and Lithuania took place between Swedish troops under the supreme command of Lewenhaupt and Russian units. An overlap between the two theatres of war in the Baltic and in Poland only occurred in 1705, when a Russian army that had marched into Courland in 1705 had to retreat before the approaching Charles XII without an open battle. In campaigns lasting years, Charles spent himself and the Swedish army in Poland and Saxony, while Swedish Livonia was devastated by Russian armies. The war in Poland only ended in 1706 with the Peace of Altranstadt, in which August II was forced to abdicate the Polish throne.
Occupation of the Duchy of Courland
August II now prepared himself for the Swedish offensive expected in the new year. The refusal of his Polish subjects to support the war financially and with troops proved to be a disadvantage. The Polish Diet of February 1701 only obtained the support of Augustus with a small auxiliary corps of 6,000 Poles and Lithuanians, too few for the upcoming battle against Charles. In response to the Swedish successes, August II and Peter I met in February 1701 in a completely changed situation to renew their alliance. Peter needed time to reorganise and rearm the Russian Tsar's army. August needed a strong ally at the Swedes' back. Tsar Peter promised to send 20,000 men to the Düna so that August could have a 48,000-strong army of Saxons, Poles, Lithuanians and Russians at his disposal to repel the Swedish attack in June 1701. Under the impression of the Swedish successes, both allies sought to withdraw from the war each on their own: Regardless of their agreement and without the knowledge of the other, they offered the Swedish king a separate peace. Charles XII, however, did not want peace and stepped up his preparations for the planned campaign against Poland. To this end, he had a total of 80,492 men raised for 1701. 17,000 men were assigned to cover the interior of the country, 18,000 men protected Swedish Pomerania, 45,000 men were distributed among Livonia, Estonia and Ingermanland. Most of the Swedish troops in Livonia were concentrated around Dorpat.
After the usual army parades, the Swedish advance via Wolmar and Wenden to Riga began on 17 June 1701. Karl planned to put his army across the Düna between Kokenhusen and Riga. The Saxons had suspected this approach and erected field fortifications at several crossing points along the Düna. Both armies faced each other for the first time on July 8/July 19 near Riga on the Düna. With 25,000 men, the Saxon-Russian army was slightly superior to the Swedes, who numbered about 20,000. This advantage was lost, however, because the Saxon commander-in-chief, Adam Heinrich von Steinau, allowed himself to be deceived by Swedish diversionary tactics and fragmented his units along the Düna. Thus the Swedish infantry managed to cross the wide stream and form a bridgehead on the riverbank held by the Saxons. The Saxon army suffered a defeat in the ensuing battle of the Düna, but was able to rally and retreat in an orderly fashion as far as Prussian territory. The Russian troops, equally shocked by the renewed defeat, retreated to Russia. All of Courland was thus open to the Swedish army. With his victorious troops, Charles occupied Mitau, the capital of the Duchy of Courland, which was under Polish feudal sovereignty.
Conquest of Warsaw and Krakow
The Polish-Lithuanian Republic protested against the violation of Polish territory by the Swedish advance into Courland, because it was not the Republic (represented by the Sejm) that was at war with Sweden, but only the King of Poland. When Augustus the Strong again offered negotiations, Charles XII's advisors recommended making peace with the King of Poland. The governor-general of Livonia, Erik von Dahlberg, went furthest in this, eventually even resigning in protest against his king's war plans. But Charles remained uncompromising and demanded that the Sejm elect a new king. This, however, was rejected by the majority of the Polish nobility.
In January 1702, Charles moved his army from Courland to Lithuania. On 23 March 1702, the Swedes left their winter quarters and invaded Poland. Without waiting for the planned reinforcements from Pomerania, Charles marched his army directly against Warsaw, which surrendered without a fight on 14 May 1702. The Polish capital was forced to pay a high tribute before Charles continued his march to Krakow. The fear that Sweden would seek territorial gains in Poland in a conceivable peace treaty now also prompted the Polish nobility to join the war.
Before Charles XII. occupied Warsaw, August II had moved to Krakow with the Polish Crown Army, about 8,000 strong, to join up with the 22,000-strong Saxon army that had been newly raised in Saxony. The Polish crown army under Hieronim Augustyn Lubomirski was poorly equipped, inadequately supplied with food and poorly motivated to fight for the Saxon king's cause. When the Polish-Saxon army of 24,000-30,000 men confronted the Swedes, who numbered only 12,000, south of Kielce, this circumstance facilitated a comprehensive victory for the Swedes in the Battle of Klissow on July 8/July 19. In the process, 2,000 Saxons were killed or wounded, and another 700 fell into Swedish captivity. The Swedes captured 48 cannons and suffered 300 dead and 800 wounded themselves. They also captured the whole of August's troop as well as 150,000 riksdaler and his silverware. The Swedes' low troop strength, however, did not allow them to pursue the defeated Polish-Saxon army, and so August was able to regroup the remaining units of his army in the eastern parts of Poland. His rapid retreat via Sandomierz to Thorn allowed Charles to occupy Krakow on 31 July 1702. Sweden now controlled the royal seat of Warsaw and the coronation city of Krakow. However, more than half of the Polish Empire remained in the hands of August II.
War in Courland and Lithuania
At the end of the 17th century, the Sapieha quickly became the most powerful dynasty in Lithuania, seeking to break Lithuania's union with Poland and claiming the throne for themselves. The electoral victory of August of Saxony as King of Poland in 1697 restricted the prerogatives of the Sapieha. A civil war broke out in Lithuania and Belarus, in which the Szlachta led by Oginski and Wiśniowiecki was victorious until 1700.
In addition to the war events in Poland, there was also fighting in Courland and Lithuania for supremacy in the Baltic. The victors of the previous Lithuanian-Belarusian civil war, the Oginski, had removed the Sapieha from all state offices by decree. The defeated former rulers now allied themselves with the victorious Swedes, while the Oginski or Count Grzegorz Antoni Ogiński called Peter I to their aid. Peter I signed an agreement with the Oginskis in 1702 for military aid. A fierce civil war broke out again. To protect Courland, a Swedish corps under the command of Carl Magnus Stuart had been left behind after the departure of the main army under Charles XII in January 1702. Due to a wound that would not heal, however, he left the actual command of the troops to Colonel Count Adam Ludwig Lewenhaupt. In Lithuania itself, under the command of Generals Carl Mörner and Magnus Stenbock, there was another Swedish detachment of several thousand men, large parts of which succeeded Charles XII in June 1702, leaving only a small force behind.
While the Sapieha, allied with Sweden, organised peasant troops to fight the Oginski confederacy in the Dnieper region of Belarus, the latter, with Russian support, ravaged the Sapiehas' lands. When the Sapiehas temporarily withdrew from Lithuania after the Swedes withdrew, Ogiński took advantage of the situation and attacked the Swedish troops in Lithuania and Courland from May to December 1702. His goal was to capture the fortress of Birze as a base for further ventures. In one of his attempts, Ogiński's army of 2500 Russians and 4500 Poles routed a 1300-strong Swedish detachment sent to dispose of the fortress. On 19 March 1703, the defeated Swedish division defeated the Russian-Polish army in the battle at Saladen. Ogiński then retreated to Poland to unite with August's troops.
Swedish conquest of western and central Poland
August II had once again offered the Swedes peace negotiations after the defeat at Klissow on 19 July 1702. He wanted to meet the Swedish demands as far as possible, with the sole aim of remaining King of Poland. Michael Stephan Radziejowski, Cardinal Archbishop of Gniezno and Primate of Poland-Lithuania, also made proposals for peace on behalf of the Republic of Poland. He offered Charles XII. Polish Livonia, Courland and a high war indemnity. Charles would only have had to renounce the deposition of the king, but he was not prepared to do so. So the war continued. After a delay of several weeks caused by a broken leg of Charles, the Swedes continued their advance along the Vistula. At the end of autumn 1702, Charles moved his troops to winter quarters at Sandomierz and Kazimierz near Krakow.
August II, forced to continue the war, had to build up an army again to halt the Swedish advance. He held an Imperial Diet in Thorn, where he was promised 100,000 men. To raise the funds for this, he travelled to Dresden in December.
In the first months of 1703, the war was at rest. It was not until March that Charles XII set off with his army in the direction of Warsaw, which he reached at the beginning of April. At the beginning of April 1703, August II. Dresden to begin a new campaign from Thorn and Marienburg. He had used the time to raise a new Saxon-Lithuanian army. When Charles learned that the enemy army was encamped near Pułtusk, he left Warsaw and crossed the Bug with his cavalry. On 21 April 1703, the Saxons were completely taken by surprise in the battle of Pułtusk. The victory cost the Swedes only 12 men, while the Saxon-Lithuanian army had to cope with 700 prisoners as well as several hundred dead and wounded. After the defeat at Pułtusk, the Saxons were too weak to face the Swedish army in the open field. They retreated to the fortress of Thorn. Charles XII then moved northwards to destroy the last remnants of the demoralised Saxon army. After months of besieging Thorn, he captured the city in September 1703. The Swedes captured 96 cannons, 9 mortars, 30 field serpents, 8,000 muskets and 100,000 thalers. Several thousand Saxons went into captivity. The capture of Thorn brought King Charles complete control of Poland. To preclude any future resistance from the city, which had withstood the Swedes for half a year, its fortifications were razed. On 21 November, the Swedes left Thorn for Elbing. The deterrent example achieved the desired effect, and under the impression of the truce of war that preceded it, many other cities submitted to the Swedish king in order to be spared in return for the payment of high tributes. Shortly before Christmas, Charles had his army take up winter quarters in West Prussia, as this region had so far remained untouched by the war.
The Confederations of Warsaw and Sandomir
After the disastrous campaigns of 1702 and 1703, August II's military situation became hopeless, his financial resources were exhausted, and his power base in Poland began to crumble. Under the impression of the country's economic decline, the Polish nobility split into different camps. In 1704, the pro-Swedish Confederation of Warsaw was formed and pushed for an end to the war. It was joined by Stanislaus Leszczyński, who led the peace negotiations with the Swedes from 1704. Since he won the confidence of their king, Charles XII soon saw Stanislaus as a suitable candidate for the planned new election of the Polish king.
In Saxony, too, there was resistance to the Elector's Polish policy. August introduced an excise tax to fill his war chest and to be able to arm the army. This turned the Saxon estates against him. In addition, he aroused the displeasure of the population through aggressive methods of recruiting recruits. With Russian support, however, he managed to raise an army of 23,000 Saxons, Cossacks and Russians once again. Lithuania, Volhynia, Red Russia and Lesser Poland continued to be loyal to the Saxon king, so August was able to retreat with his court to Sandomierz. There, parts of the Polish nobility had formed a confederation in his support, opposing the Swedish occupation of Poland and the new king demanded by Sweden. The Sandomir Confederation under the hetman Adam Mikołaj Sieniawski refused to recognise an abdication by August and the accession of Stanislaus Leszczynski. This did not mean a real balance of power, however, because the confederation had little military significance and its troops could at best disrupt the Swedes' supplies. Tsar Peter concluded an agreement with August II that enabled him to continue the war against Sweden on the territory of Poland-Lithuania. Then, in the autumn of 1704, a large Russian army moved into Belarus, remaining stationed in Polotsk for a long time and then capturing Vilna, Minsk and Grodno.
Election of a new King of Poland loyal to Sweden
At the end of May 1704, Charles XII set out from his winter quarters for Warsaw to protect the planned royal election. The army consisted of 17,700 infantry and 13,500 cavalry. After Charles' arrival in Warsaw, under the protection of the Swedish army, Stanislaus I Leszczyński was elected king on 12 July 1704 against the will of the majority of the Polish nobility.
After the election, Charles advanced with a strong army corps against the breakaway territories that refused to obey the new king. August did not recognise the election and evaded the advancing Charles with his army. When the Swedish army advanced as far as Jarosław in July, August took the opportunity to move back to Warsaw. Instead of pursuing him, Charles captured the poorly fortified Lemberg in an assault at the end of August. Meanwhile, August had reached Warsaw, where the newly elected king was also staying. In the city itself stood 675 Swedes and about 6000 Poles to protect the king, who was loyal to Sweden. Most of the Polish soldiers deserted, and the Polish king also fled the city, leaving the Swedes alone to resist. On 26 May 1704, the Swedish garrison had to capitulate to August II. After the capture of Warsaw, August moved to Greater Poland. The weak Swedish contingent there was then forced to withdraw.
Near Lemberg, Charles received news of the capture of Narva by Russian troops. However, he still ruled out a move to the north. After a two-week delay, the Swedish army returned to Warsaw in mid-September to retake the city. August did not risk a battle, but fled from his capital before Charles' arrival and placed General Johann Matthias von der Schulenburg in command of the Saxon army. He, too, did not dare to engage in open field battle and retreated to Posen, where a Russian contingent under the command of Johann Reinhold von Patkul had surrounded the city. After the renewed conquest of Warsaw, Charles had the Saxon-Polish army pursued. In the process, a Russian detachment of 2000 men was defeated in a skirmish, 900 Russians fell. The remaining Russians fought almost to the last man the following day. Despite the skilful retreat of the Saxons under Schulenburg, Charles caught up with part of the Saxon army just before the Silesian border. In the battle of Punitz, 5000 Saxons withstood four attacking Swedish dragoon regiments. Schulenburg succeeded in withdrawing his troops in an orderly fashion across the Oder into Saxony. Because of the exhausting marches, Karl had to move into his winter quarters as early as the beginning of November. He chose the district of Greater Poland bordering on Silesia, which had been largely spared by the war until then.
Development in Courland and Lithuania
After Lewenhaupt's victory the previous year, Jan Kazimierz Sapieha returned to Lithuania in the spring of 1704 and strengthened Lewenhaupt's position there. After Leszczyński's election as the new Polish king, Lewenhaupt had received orders from Charles XII to enforce the Sapiehas' claims in their homeland. Lewenhaupt invaded Lithuania with his troops from Courland, whereupon the supporters of August II led by Count Ogiński had to retreat. Lewenhaupt was able to win over the Lithuanian nobility to the Swedish side and persuade the Lithuanian Diet to pay homage to the new Polish king, but afterwards he had to return to Mitau, as a Russian army was approaching and threatening Courland.
The Russian army united with loyal Polish troops and moved to the fortress of Seelburg on the Düna, which was occupied by only a small garrison of 300 Swedes. Lewenhaupt immediately rushed to seize the besieged fortress. The Russian-Polish army then broke off the siege to confront the approaching enemy. On 26 July 1704, the two armies met at Jakobstadt, where the vastly outnumbered Swedish-Polish army of 3,085 Swedes and 3,000 Poles defeated a numerically superior army of 3,500 Russians and 10,000 Poles in the Battle of Jakobstadt. The Russian troops had to retreat. From the battlefield at Jakobstadt, Lewenhaupt first turned against the fortress of Birze, located between Riga and Mitau, which had been occupied by Ogiński's troops. The garrison of the fortress, consisting of 800 Poles, surrendered immediately and were given free leave. Lewenhaupt dismissed his troops to winter quarters for the rest of the year, which also gave the war in Lithuania and Courland a rest.
Coronation of the King loyal to Sweden in Warsaw
There were no warlike events in Poland in the first half of 1705. The Swedish army under Charles XII camped idly in the town of Rawitch, which was also the headquarters of the Swedes in Poland. It was decided that Stanislaus Leszczyński, elected the previous year, would be crowned Polish king in July 1705. For the Swedes, securing the succession to the throne was so important because only with their desired candidate could the peace negotiations with Poland, which had already begun, be concluded. The previous king, August II, was also prepared to negotiate peace, but with the hope of a candidate on the Polish throne who was more docile for their purposes, the Swedish position hardened until the Swedes saw the dethronement of the Wettin as the only way to conclude a peace in their favour.
Unlike the Swedes, August II did not remain inactive and, with Russian support, was once again able to raise an army to prevent the coronation of the Swedish counter-king. At the suggestion of Johann Patkul, he appointed his fellow Livonian Otto Arnold Paykull as commander, who advanced to Warsaw with 6,000 Poles and 4,000 Saxons. To ensure the safety of the heir to the throne, Charles XII had sent the lieutenant general Carl Nieroth to the capital with 2,000 men. On 31 July 1705, the two armies met near Warsaw in the Battle of Rakowitz, in which the Saxon-Polish army was defeated by the Swedish army, which was five times smaller. Lieutenant General Paykull fell into the hands of the Swedes along with his diplomatic correspondence and was taken to Stockholm as a state prisoner. There he impressed his judges by claiming that he knew the secret to making gold. But although he gave a sample of his alchemical art, Charles XII deemed the matter unworthy of further investigation and had him beheaded for treason.
As a result of the battle, Stanislaus Leszczyński was able to be crowned unhindered as the new Polish king in Warsaw on 4 October 1705. However, he remained completely dependent militarily and financially on his Swedish patrons and was still not recognised in all parts of the country. Only Greater Poland, West Prussia, Masovia and Lesser Poland submitted to him, while Lithuania and Volhynia continued to adhere to August II and Peter I. As a direct consequence of the royal coronation, the Kingdom of Poland concluded the Peace of Warsaw with Sweden on 18 November 1705 in the person of Leszczyński. The previous king of the country and Elector of Saxony, August II, did not accept this peace and declared that there was no longer war only between Sweden and Poland, but that there would continue to be war between Sweden and the Electorate of Saxony.
The war also continued in Courland and Lithuania. Due to Levenehaupt's successes the previous year, Peter I had instructed his marshal Sheremetyev to cut off Levenehaupt's 7,000-strong and fragmented army from Riga with an army of 20,000 men. To do this, the advance had to be kept secret for as long as possible in order to prevent the enemy forces from concentrating. However, this did not succeed, so Lewenhaupt was able to gather his troops in time. On 16 July 1705, Lewenhaupt deployed his entire army in battle formation against the advancing Russian army. After four hours of fighting, the Swedes won the Battle of Gemauerthof with a loss of 1,500 men, while the numerically superior Russian army lost 6,000 men. The Swedes' victory did not last long, however, for in September Peter sent another army, this time 40,000 strong. This time, the Tsar only allowed his army to march at night in order to maintain the secrecy of the operation for as long as possible. Nevertheless, Swedish scouts learned of the new Russian advance, so that Lewenhaupt, who had been promoted to lieutenant general, was able to gather his troops in and around Riga. After Peter I had been informed of this, he directed the planned advance towards the smaller fortresses of Mitau and Biskau instead of Riga. Since all Swedish troops were around Riga, the whole of Courland could be occupied by Russian troops.
Struggle for the recognition of the new king
→ Main article: Grodno campaign (1705/1706)
For the first time since the battle of Narwa, Charles XII marched with the Swedish main army into the Baltic to help the Swedish forces there who were under pressure. The starting point was Warsaw, where he had stayed throughout the autumn of 1705. Charles decided to force the still renegade territories to swear allegiance to the new king. At the end of 1705, the army began its advance across the Vistula and the Bug to Lithuania. In the autumn, Swedish reinforcements from Finland had brought Lewenhaupt's army, which had been assembled in Riga, to a strength of 10,000 men. The Russian forces in Courland now feared being heckled by Lewenhaupt's troops in Riga and the approaching Charles. After the fortifications in Mitau and Bauske had been blown up, they withdrew from Courland first to Grodno, so that Lewenhaupt could once again occupy Courland. After the Russians had left, the Lithuanians began to turn more and more to the new King of Poland, who was loyal to Sweden, which considerably reduced the burdens of the war for them. A reconciliation of the opposing Lithuanian noble families of the Sapiehas and the Wienowickis also succeeded. Since Count Ogiński's continued struggle on the side of August II was not successful anywhere, the Swedish party in Lithuania now finally gained the upper hand.
On 15 January (jul.), Charles XII's army crossed the Nyemen on its way to Grodno, where a 20,000-strong Russian army under Field Marshal Georg Benedikt von Ogilvy stood. This army had crossed the Polish border in December 1705 to join up with the Saxon troops. Charles had marched towards the Russians with the main part of his army of almost 30,000 men, but a battle did not take place, as the Russian troops did not want to get involved in a confrontation with the Swedish king and retreated to Grodno. Due to the cold, a siege was out of the question, so Charles merely had a blockade ring built around Grodno, cutting off the city and the Russian army from the supply of goods.
When August II saw that Charles XII was lying idle outside Grodno, he held a council of war which decided to take advantage of the king's absence to destroy a Swedish detachment under the command of Carl Gustaf Rehnskiöld further west. The latter had been left behind by Charles with over 10,000 men to protect Greater Poland and Warsaw. August wanted to move west, unite with all the Polish detachments on the way and then with the newly formed Saxon army in Silesia under the command of General Schulenburg, to attack Rehnskiöld's corps and march back to Grodno after a victory. On 18 January August bypassed the Swedish blockade to the west with 2000 men, united with several Polish troop contingents and on 26 January entered Warsaw for the second time. From there, after a short pause, he advanced further with his army, which in the meantime had grown to 14,000 to 15,000 men, to attack the Swedish corps. He also ordered General Schulenburg to take up with his troops the Russian auxiliary corps of 6,000 men lying nearby and to march to Greater Poland to unite with it. Rehnskiöld received news of the Saxon plan and hoped to avoid annihilation by engaging the enemy in combat while they were still separated. By pretending to retreat, General Schulenburg was actually induced to attack the outnumbered Swedes. Without reinforcements from August II's Polish army, Schulenberg's Saxon recruits suffered a crushing defeat at the hands of the storm-tossed Swedes at the Battle of Fraustadt on 13 February 1706. August II broke off his advance after this renewed setback, sent part of the troops back to Grodno and marched the rest to Krakow. The situation in Grodno became hopeless for the Russian army after the defeat at Vranov. They could no longer hope for relief, and the supply difficulties had worsened drastically in the meantime. In addition to the famine, diseases spread among the soldiers, leading to high casualties. After news of the defeat at Fraustadt reached Grodno, the Russian commander Olgivy decided to make a break for Kiev with the remaining 10,000 able-bodied men. They escaped the Swedish pursuers and managed to save themselves across the border.
Charles XII had marched as far as Pinsk in pursuit of the Russian army. From there, after a pause, he set out on 21 May 1706 to move into the south of Poland-Lithuania. The territories there still held to August and refused an oath of allegiance to King Stanislaus I. On 1 June, Charles moved into Volhynia. There, too, the new king loyal to Sweden had been recognised with military vigour. During the summer months there was also fighting. Several forays by the Swedes along the Russian-Polish border against Russian positions brought no decisive results. Based on the experience of the campaigns through Poland, which had served the purpose of asserting the legitimacy of the new king loyal to Sweden, Charles began to rethink his strategy. As long as the Swedish army was in place, the inhabitants took the enforced oath of allegiance. As soon as the Swedish army had left, however, they turned back to King August, who kept bringing in new troops from his retreat in Saxony. Due to the unsuccessfulness of his previous strategy, Charles now wanted to end the war by moving into Saxony.
Conquest of Saxony and abdication of King August II.
In the summer of 1706, Charles XII set out with his troops from eastern Poland, joined forces with Rehnskjöld's army and on 27 August 1706 entered the Electorate of Saxony via Silesia. The Swedes conquered the Electorate step by step and stifled all resistance. The country was rigorously exploited. August no longer had any troops worth mentioning since the battle of Fraustadt, and since his ancestral land was also occupied by the Swedes, he had to offer Charles peace negotiations. The Swedish negotiators Carl Piper and Olof Hermelin as well as Saxon representatives signed a peace treaty in Altranstädt on 24 September 1706, but it could only become valid when ratified by the king.
Although August wanted to end the state of war, he was also bound by pledges of alliance to Peter I, to whom he concealed the approaching peace with Sweden. On hearing of the Swedish advance into Saxony, the Russian army under Generals Boris Petrovich Sheremetev and Alexander Danilovich Menshikov had advanced from the Ukraine far into western Poland. Menshikov led an advance detachment in front of the main body of the Russian army and united in Poland with the remaining Saxon-Polish army under August II. Thus, under Russian pressure, August had to officially continue the fight and rather reluctantly fought a final battle against the Swedes at Kalisch with the united army of 36,000 men. In the battle of Kalisch, the combined Russian, Saxon and Polish forces were able to completely destroy the numerically outnumbered Swedish troops under General Arvid Axel Mardefelt, who had been left behind by Charles to defend Poland. In the process, General Mardefelt and over 100 officers (including Polish magnates) were taken prisoner. This, however, did not change the continuing Swedish superiority, so that August refused to annul the peace treaty and quickly returned to Saxony to seek a settlement with Charles. Thus, on 19 December, the Elector announced the ratification of the Altranstadt Peace Treaty between Sweden and Saxony, by which he renounced "forever" the Polish crown and dissolved the alliance with Russia. He also undertook to surrender the prisoners of war and defectors, namely Johann Reinhold von Patkul. Augustus the Strong had already arrested the Livonian, who had advised him to go to war, in December 1705. After he was handed over to the Swedes, Charles XII had him executed and quartered as a traitor.
For the Polish king Stanislaus Leszczyński, who was dependent on Sweden, the treaty did not improve his situation. He did not succeed in integrating his domestic enemies, and so he remained dependent on the protection of Swedish troops.
The Swedish advance into Saxony triggered international entanglements in 1706/07, for the occupation of an imperial territory was a clear breach of imperial law, especially since Charles XII was himself an imperial prince through his possessions of Swedish Pomerania and Bremen-Verden. Moreover, the Swedes had marched unasked through Silesia, which was Habsburg territory. However, another imperial war could not be enforced due to the simultaneous war with France. From the point of view of the Viennese Court, it was also important to prevent Charles from allying with the rebellious Hungarians or invading the Habsburg hereditary lands and thus creating a new constellation as in the Thirty YearsWar.
The danger that the Great Northern War would mix with the fighting in the War of the Spanish Succession, which was taking place in Central Europe at the same time, was great at this time. Both warring sides therefore endeavoured to win the King of Sweden as an ally or at least to keep him out of the conflict. Thus, in April 1707, the allied commander of troops in the Netherlands, John Churchill, Duke of Marlborough, visited the Swedish camp in Saxony. He urged Charles to turn his army back to the east and not to advance further into imperial territory. The Habsburg Emperor Joseph I also asked Charles to stay out of Germany with his troops. To this end, the Emperor was even prepared to recognise the new Polish king and to make concessions to the Protestant Christians in the Silesian hereditary lands, as finally agreed on 1 September 1707 in the Altranstadt Convention, in which, among other things, permission was granted to build so-called churches of grace. Charles had no interest in interfering in German affairs and preferred to move against Russia again.