For the first time he was a deputy (poseł) from the Sandomierz voivodeship to the Sejm of 1746. To the Sejm in 1748 he was chosen as a Crown envoy from Livonia. He was elected again in 1756, again from the Sandomierz powiat of the Sandomierz voivodeship. In 1758 he was chosen as a deputy to the Sejm once more. In 1758 he reactivated the Polish Masonic Lodge - "Trzech Braci" - Three Brothers. Member of the Extraordinary Sejm of 1761 from the Sandomierz Province. On April 29, 1761, he broke up the extraordinary parliament with liberum veto. In 1762 he was chosen as a Member of Parliament from the Sandomierz again, and in 1764 he was the deputy from Sandomierz to the Royal election, where he played a major role as one of the initiators of the reforms of the state. He was the marshal of the Sandomierz voivodeship in the Czartoryski confederation in 1764. In 1764 he was one the electors of Stanisław August Poniatowski from the Sandomierz Province. In 1766 he was once again chosen as a deputy from his province. Having received the marshal's staff in 1766, he was one of the contributed to modernize and expand the capital city of Warsaw, and worked on the reform of the criminal justice system. During the Bar Confederation, he tried to influence strengthen the king in resistance towards Russia, trying to win him over to the side of the Confederates and France. Member of the confederation of 1773. As a member of the delegation to the Partition Sejm (1773–1775), he was a representative of the opposition. However, on September 18, 1773, he signed treaties of cession by the Polish–Lithuanian Commonwealth of the lands seized by Russia, Prussia and Austria in the first partition of Poland.