1771–1772
Its army, thoroughly reorganized by Dumouriez, maintained the fight. The year 1771 brought further defeats, including the one at Lanckorona on 21 May and at Stałowicze at 23 October. The final battle of the war was the siege of Jasna Góra, which fell on 13 August 1772. The regiments of the Bar Confederation, whose executive board had been forced to leave Austria, which previously supported them, after Austria joined the Prusso-Russian alliance, did not lay down their arms.
Many fortresses in their command held out as long as possible; Wawel Castle (defended by Marquis de Choisy) in Kraków fell only on 28 April; Tyniec fortress held until 13 July 1772; Częstochowa, commanded by Casimir Pulaski, held until 18 August. Overall, around 100,000 nobles participated in 500 military clashes in 1768–1772. Perhaps the last stronghold of the confederates was in the monastery in Zagórz, which fell only on 28 November 1772. In the end, the Bar Confederation was defeated, with its members either fleeing abroad or being deported to Siberia, Volga region, Urals by the Russians.
In the meantime, taking advantage of the confusion in the Commonwealth, already by 1769–71, both Austria and Prussia had taken over some of its border territories, with Austria taking Szepes County in 1769–1770 and Prussia incorporating Lauenburg and Bütow. On 19 February 1772, the agreement of partition was signed in Vienna. A previous secret agreement between Prussia and Russia had been made in Saint Petersburg on 6 February 1772.
Early in August, Russian, Prussian, and Austrian troops fighting the Bar confederation in the Commonwealth occupied the provinces agreed upon among themselves. On 5 August, the three parties issued a manifesto about their respective territorial gains on the Commonwealth's expense.
Bar Confederates taken as prisoners by the Russians, together with their families, formed the first major group of Poles and Lithuanians exiled to Siberia (sybirak). It is estimated that about 5,000 former confederates were sent there. Russia organized 3 concentration camps in Polish–Lithuanian Commonwealth for Polish captives, where these concentrated persons have been waiting for their deportation there.