Treaty of Warsaw
The faction of the Polish–Lithuanian Commonwealth loyal to Stanisław Leszczyński, organised in the Warsaw Confederation, instead concluded an alliance with the Swedish Empire in the Treaty of Warsaw in November 1705.