[1] At the onset of the Great Northern War, Augustus the Strong was king of Poland, Grand Duke of Lithuania and Elector of Saxony.
[5] In the following years, Charles XII of Sweden pursued Augustus through Poland–Lithuania, imposing on him a series of defeats, and Russia was able to recover and advance in the Baltic provinces.
[6] In July 1704, Swedish advances and the resulting internal quarrels in Poland–Lithuania caused the dethronement of Augustus the Strong and election of Stanisław Leszczyński, the candidate promoted by the Charles XII of Sweden, as the Polish king.
[8] The treaty was negotiated for Poland by Thomas Dzialynski [pl] (Dzialin),[9] a commander of the Saxo-Polish forces participating in the preceding Russian siege and storm of Narva.
[9] Peter the Great, in pursuit of the treaty, ordered Ivan Mazepa to expel Paliy (Paley) from the commonwealth's cossack territories, which he eventually did, Dzialinsky's irrefutable condition during the negotiations.