sentences:  Charles defeated the Polish king Augustus II and his Saxon allies at the Battle of Kliszow in 1702 and captured many cities of the Commonwealth.After the deposition of Augustus as king of the Polish–Lithuanian Commonwealth, Charles XII put Stanisław Leszczyński as his puppet on the Polish throne (1704).While Charles won several decisive battles in the Commonwealth and ultimately secured the coronation of his ally Stanisław Leszczyński and the surrender of Saxony, the Russian Tsar Peter the Great embarked on a military reform plan that improved the Russian army, using the effectively organized Swedes and other European standards for role models.