By 1790, on the political front, the Commonwealth had deteriorated into such a helpless condition that it was forced into an alliance with its enemy, Prussia. The Polish-Prussian Pact of 1790 was signed, giving false hope that the Commonwealth might have at last found an ally that would shield it while it reformed itself. The May Constitution of 1791 enfranchised the bourgeoisie, established the separation of the three branches of government, and eliminated the abuses of Repnin Sejm. Those reforms prompted aggressive actions on the part of its neighbours, wary of the potential renaissance of the Commonwealth. Again Poland dared to reform and improve itself without Russia's permission, and again the Empress Catherine II was angered; arguing that Poland had fallen prey to the radical Jacobinism then at high tide in France, Russian forces invaded the Commonwealth in 1792. 1792, Polish withdrawal; painting by Wojciech Kossak During the Polish–Russian War of 1792 in Defense of the Constitution, the Polish forces supporting the Constitution fought against the army of the Russian Empire, invited by the pro-Russian alliance of Polish magnates, known as the Targowica Confederation. The conservative nobility believed that the Russians would help them restore their Golden Liberty. Abandoned by their Prussian allies, the badly outnumbered Polish pro-Constitution forces fought under Prince Józef Poniatowski a defensive war with some measure of success, but were ordered to abandon their efforts by their supreme commander, King Stanisław August Poniatowski. The King decided to join the Targowica Confederation, as demanded by the Russians. Russia invaded Poland to ensure the defeat of the Polish reforms, with no overt goal of another partition. Frederick William II of Prussia, however, saw those events as an opportunity to strengthen his country. Frederick demanded from Catherine that for his country's abandoning Poland as a close ally, for Prussian participation in the War of the First Coalition against revolutionary France, because Russia had encouraged Prussian participation, and because Prussia had recently suffered a major defeat at the Battle of Valmy, Prussia should be compensated – preferably with parts of the Polish territory. Russia soon decided to accept the Prussian offer.
Partition treaty
On 23 January 1793, Prussia signed a treaty with Russia, agreeing that Polish reforms would be revoked and both countries would receive broad swaths of Commonwealth territory. Russian and Prussian military took control of the territories they claimed, with Russian troops already present, and Prussian troops meeting only limited resistance. In 1793, deputies to the Grodno Sejm, the last Sejm of the Commonwealth, in the presence of Russian forces, agreed to the Russian and Prussian territorial demands. The Grodno Sejm became infamous not only as the last sejm of the Commonwealth, but because its deputies had been bribed and coerced by the Russians. Imperial Russia annexed, while Prussia took. The Commonwealth lost about 307,000 km², being reduced to 215,000 km².
Targowica confederates, who did not expect another partition, and the king, Stanisław August Poniatowski, who joined them near the end, both lost much prestige and support. The reformers, on the other hand, were attracting increasing support. In March 1794 the Kościuszko Uprising began. The defeat of the Uprising in November that year resulted in the final Third Partition of Poland, ending the existence of the Commonwealth.