The Bar Confederation of 1768 was a "szlachta" rebellion directed against Russia and the Polish king. It was brought under control and followed in 1772 by the First Partition of the Commonwealth, a permanent encroachment on the outer Commonwealth provinces by Russia, Prussia and Austria.