1704 Polish–Lithuanian royal election

In early 1700, King of Poland, Grand Duke of Lithuania and Elector of Saxony, Augustus II the Strong began the Great Northern War by attacking Swedish Livonia.

His opponent were led by Primate of Poland, Michał Radziejowski, and sons of late King Jan III Sobieski, Jakub and Konstanty.

In April of the same year, young Voivode of Poznań, Stanisław Leszczyński, met with King Charles XII of Sweden in Lidzbark Warmiński.

In May 1704, he formed the anti-Swedish Sandomierz Confederation, called for the levee en masse, and on August 30, signed the Treaty of Narva, establishing the Polish - Russian alliance, and officially declaring war between the Commonwealth and Sweden.

On February 13, 1706, however, Augustus lost the Battle of Fraustadt, and, facing Swedish occupation of Saxony, gave up his claim to Polish crown in the Treaty of Altranstadt (1706).

Election of Stanisław Leszczyński in 1704
Coronation of Stanisław I Leszczyński in 1705