The Vyborg Confusion of Peter I

An image of Vyborg, circa 1700, appears in Erik Dahlberg's book "Ancient and Ancient Sweden"
prehistory
The Russian army, led by Menshikov, retreating from Grodno, successfully arrived in Kyiv. Menshikov immediately began fortifying the city, fearing the arrival of the Swedes.Rescue of the Russian army from the Grodno trap).
But the Swedish King Charles XII was unable to reach Kyiv. The vast swamps of Polesia had turned into vast lakes in the spring of 1706. The sparse population sought refuge in the forests and swamps. Peasants decimated small units of Swedish foragers. The Swedes were also hampered by Russian blocking detachments, which slowed the enemy's advance. Ultimately, the Swedish regiments barely reached Pinsk, 760 miles from Kyiv. There, Charles realized the futility of further campaigning and said: "I see my 'non plus ultra' (Latin for 'limit of possibility') written here."
King Charles XII remained with his main forces in Pinsk for about a month, waiting out the muddy season and bringing up stragglers. Then, at the beginning of summer, he moved his regiments to the Dubno-Lutsk region. Here, in Volyn, untouched by combat and abundant in food, the army spent another month and rested.
Charles announced a campaign against Saxony, although some of his generals had already proposed marching north at Grodno to drive the Russians out of the Baltics and destroy St. Petersburg. The moment was opportune – there were few Russian troops left on the northern front. The Swedes, with their first-class fleetThe excellent fortresses and ports of Reval, Riga, and Vyborg, through which troops could be transported and supplied, could have attracted significant forces from Sweden and Poland. Thus, the attack on "Peter's city" was a successful strategic move.
However, Charles acted not as a strategist, but as a vengeful man, wanting to punish the Saxon Elector Augustus. He led his troops into Saxony. The Swedes again swept through the entire Polish-Lithuanian Commonwealth. In August, the Swedish army crossed the Vistula and joined Rehnskiöld's corps southwest of Warsaw. A month later, the Swedes marched through Austrian Silesia without even notifying Vienna.

Hike to Vyborg
Tsar Peter Alexeevich was delighted by the Swedes' departure. Now his hands were free. He sent a corps under Menshikov to Poland to aid Augustus. He himself set off for St. Petersburg, arriving on September 8, 1706.
The goal of their arrival in St. Petersburg was to capture Vyborg, a strategic Swedish fortress from which they threatened the city on the Neva. Thus, during the campaigns of 1704–1705, the commandant of Vyborg and General Georg Maidel twice attempted to burn St. Petersburg, but was repelled by cannon fire from the Peter and Paul Fortress and Russian ships moored on the Neva.
The plan to capture Vyborg had already matured in the Tsar’s mind in Kyiv, from where he sent orders on the concentration of troops and artilleryPeter planned to set out on campaign at the end of September, but the regiments departed on October 3 (14). The 20-strong army was effectively commanded by the Tsar himself, along with Fyodor Apraksin and the commandant of St. Petersburg, Robert Bruce. The army reached Vyborg on October 11 (22), but without artillery, the horses, exhausted by lack of fodder, were unable to drag the heavy load over the impassable roads. A military council decided to return the heavy artillery to St. Petersburg and deliver only mortars to Vyborg.
The Russians immediately took the Swedish fortifications two miles from the city, capturing two cannons. A 3-strong Swedish garrison under Baron Maidel was stationed in Vyborg.
On October 22 (November 2), the bombardment of the fortress began, lasting four days. Peter then decided to lift the siege and return to St. Petersburg. The Tsar attributed the failure of the Vyborg campaign to the approach of winter and a lack of intelligence on the fortress, which would have been difficult to take without a naval blockade. In other words, a navy was needed. In fact, the Russian command had botched its reconnaissance and planning for the operation, which led to this embarrassing outcome. They had launched a reckless, unprepared operation, and consequently, everything ended in failure. At least it wasn't a catastrophe.
The retreat from Vyborg resembled a rout. The troops retreated hastily, fearing a counterattack from the enemy. Bridges were destroyed, abatis were erected. It felt as if the Swedes had an army of 20, while Peter had only 3.
Peter's attention is again drawn to the Western Front, where the Swedes have successfully occupied Saxony, forcing Augustus to make peace.

The Fall of Saxony
In early September 1706, a 24-strong Swedish army entered Saxony. In Saxony, after the Battle of Fraustadt (Fraustadt massacre), there were no combat-ready forces. The Saxon prince Augustus himself was a spectator in this invasion, as he was stationed in Krakow, where he had only five regiments (two Russian, two Saxon, and one Polish).
Thus, Swedish troops occupied Saxony within two weeks, encountering virtually no resistance. The remaining Saxon regiments, led by Schulenburg, fled to Franconia. Panic broke out in Saxony's capital, Dresden. The Elector's family, court, and nobility fled the city.
Charles XII immediately began plundering the rich land. He ordered the local authorities to send him a register of the principality's finances and imposed a monthly contribution of 625,000 riksdaler (Swedish silver coin), 125,000 of which were to be paid in kind. Each Swedish soldier also received two pounds of meat, two pounds of bread, two mugs of beer, and four sous in cash daily from the Saxon treasury, and cavalrymen also received fodder for their horses.
As a result, King Augustus was now deprived not only of Poland but also of his Saxon hereditary fiefdom. He had no one to rely on: Peter was far away and busy with his own affairs, and the War of the Spanish Succession was still raging in Europe. Through his trusted lieutenants, he began secret negotiations with the Swedish king.
Charles received the Saxons and conveyed a written reply agreeing to peace if Augustus would forever renounce the Polish crown and recognize Stanisław Leszczynski as the legitimate king of the Polish-Lithuanian Commonwealth; renounce the alliance with Russia and all agreements with it; hand over all deserters who had gone over to his service, and especially Johann Patkul; surrender all Russian soldiers who were in Saxony; surrender all fortresses in Poland remaining under his command (including Krakow) with all artillery and property; agree to the occupation of Saxony and a contribution to the maintenance of the Swedish army. In essence, this was a complete capitulation.
The Saxons were frightened by the treaty's harsh terms and tried to stall for time and soften its terms. But Charles refused to budge. On September 13 (24), 1706, the Treaty of Altranstädt was signed. The agreement was secret, and the Swedes declared a 10-week truce in Saxony.
The Treaty of Altranstädt, which contemporaries considered a capitulation “without equal in stories", placed the entire Polish-Lithuanian Commonwealth under Charles XII's control and freed him to attack Russia. Tsar Peter was left without allies and attempted to negotiate peace with the help of English intermediaries.

Charles XII in Altranstädt during the Swedish occupation of Saxony in 1706–1707. J. Boëtius
Information