The History of the Polish–Lithuanian Commonwealth (1764–1795) is concerned with the final decades of existence of the Polish–Lithuanian Commonwealth. The period, during which the declining state pursued wide-ranging reforms and was subjected to three partitions by the neighboring powers, coincides with the election and reign of the federation's last king, Stanisław August Poniatowski.
During the later part of the 18th century, the Commonwealth attempted fundamental internal reforms. The reform activity provoked hostile reaction and eventually military response on the part of the surrounding states. The second half of the century brought improved economy and significant growth of the population. The most populous capital city of Warsaw replaced Danzig (Gdańsk) as the leading trade center, and the role of the more prosperous urban strata was increasing. The last decades of the independent Commonwealth existence were characterized by intense reform movements and far-reaching progress in the areas of education, intellectual life, arts and sciences, and especially toward the end of the period, evolution of the social and political system.
The royal election of 1764 resulted in the elevation of Stanisław August Poniatowski, a refined and worldly aristocrat connected to a major magnate faction, but hand-picked and imposed by Empress Catherine II of Russia, who expected Poniatowski to be her obedient follower. The King accordingly spent his reign torn between his desire to implement reforms necessary to save the state, and his perceived necessity of remaining in subordinate relationship with his Russian sponsors. The Bar Confederation of 1768 was a szlachta rebellion directed against Russia and the Polish king, fought to preserve Poland's independence and in support of szlachta's traditional causes. 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 the Russian Empire, the Kingdom of Prussia and Habsburg Austria. The "Partition Sejm" under duress "ratified" the partition fait accompli. In 1773 the Sejm established the Commission of National Education, a pioneering in Europe government education authority.