Peter had made his arrangements for Russia during his absence. Gordon with his corps was at Moscow; the Strelitz were distributed in Astrakan and Azov, where some successful operations were carried out. Nevertheless, sedition raised its head. Insurrection was checked by Gordon, but disaffection remained. Reappearing unexpectedly, he punished the mutinous Strelitz mercilessly, and that body was entirely done away with. New regiments were created on the German model; and he then set about reorganising the finances, reforming the political position of the Church, destroying the power of the higher clergy, and generally introducing more enlightened customs from western Europe.

III.--War with Sweden

In 1699, the sultan was obliged to conclude a peace at Carlovitz, to the advantage of all the powers with whom he had been at war. This set Peter free on the side of Sweden. The youth of Charles XII. tempted Peter to the recovery of the Baltic provinces. He set about the siege of Riga and Narva. But Charles, in a series of marvellous operations, raised the siege of Riga, and dispersed or captured the very much greater force before Narva in November 1700.

The continued successes of Charles did not check Peter's determination to maintain Augustus of Saxony and Poland against him. It was during the subsequent operations against Charles's lieutenants in Livonia that Catherine--afterwards to become Peter's empress--was taken prisoner.

The Tsar continued to press forward his social reforms at Moscow, and his naval and military programmes. His fleet was growing on Lake Ladoga. In its neighbourhood was the important Swedish fortress of Niantz, which he captured in May 1703; after which he resolved to establish the town which became Petersburg, where the Neva flows into the Gulf of Finland; and designed the fortifications of Cronstadt, which were to render it impregnable. The next step was to take Narva, where he had before been foiled. The town fell on August 20, 1704; when Peter, by his personal exertions, checked the violence of his soldiery.

Menzikoff, a man of humble origin, was now made governor of Ingria. In June 1705, a formidable attempt of the Swedes to destroy the rapidly rising Petersburg and Cronstadt was completely repulsed. A Swedish victory, under Lewenhaupt, at Gemavers, in Courland, was neutralised by the capture of Mittau. But Poland was now torn from Augustus, and Charles's nominee, Stanislaus, was king. Denmark had been forced into neutrality; exaggerated reports of the defeat at Gemavers had once more stirred up the remnants of the old Strelitz. Nevertheless, Peter, before the end of the year, was as secure as ever.

In 1706, Augustus was reduced to a formal abdication and recognition of Stanislaus as King of Poland; and Patkul, a Livonian, Peter's ambassador at Dresden, was subsequently delivered to Charles and put to death, to the just wrath of Peter. In October, the Russians, under Menzikoff, won their first pitched battle against the Swedes, a success which did not save Patkul.

In February 1708, Charles himself was once more in Lithuania, at the head of an army. But his advance towards Moscow was disputed at well-selected points, and even his victory at Hollosin was a proof that the Russians had now learned how to fight.

When Charles reached the Dnieper, he unexpectedly marched to unite with Mazeppa in the Ukraine, instead of continuing his advance on Moscow. Menzikoff intercepted Lewenhaupt on the march with a great convoy to join Charles, and that general was only able to cut his way through with 5,000 of his force. Mazeppa's own movement was crushed, and he only joined Charles as a fugitive, not an ally. Charles's desperate operations need not be followed. It suffices to say that in May 1709, he had opened the siege of Pultawa, by the capture of which he counted that the road to Moscow would lie open to him.

Here the decisive battle was fought on July 12. The dogged patience with which Peter had turned every defeat into a lesson in the art of war met with its reward. The Swedish army was shattered; Charles, prostrated by a wound, was himself carried into safety across the Turkish frontier. Peter's victory was absolutely decisive and overwhelming; and what it meant was the civilising of a territory till then barbarian. Its effects in other European countries, including the recovery of the Polish crown by Augustus, are pointed out in the history of Charles XII. The year 1710 witnessed the capture of a series of Swedish provinces in the Baltic provinces; and the Swedish forces in Pomerania were neutralised.