As intended, the treaty made an inner-Polish-Lithuanian reconciliation of the Warsaw and Sandomir confederations impossible. In early 1706, Augustus the Strong approached Warsaw with a cavalry force and ordered Johann Matthias von der Schulenburg to move the army assembled in Saxony into Poland–Lithuania. Schulenburg was intercepted and defeated by Carl Gustav Rehnskiöld in the Battle of Fraustadt. The army assembled in Polotsk had been moved to Grodno (Hrodna, Gardinas, Garten), where it was tactically defeated and forced to withdraw eastwards. Charles XII then occupied Saxony, forcing Augustus to abandon both the Polish crown and his allies in the Treaty of Altranstädt (1706).