After the Battle of Narva in 1700, one of the first battles of the Great Northern War, the Russian army was so severely devastated that Sweden had an open chance to invade Russia. However, Charles XII did not pursue the Russian army, instead turning against Poland–Lithuania and defeating the Polish king, Augustus II the Strong, and his Saxon allies at the Battle of Kliszów in 1702. This gave Russia time to rebuild and modernise its army.