While in the Polish–Lithuanian Commonwealth he became attached as a Privy Councilor at the court of King Stanislaus II. There he became acquainted with Polish liberal and constitutional thought, like the works of Wawrzyniec Grzymała Goślicki and ideas of Golden Freedoms and Great Sejm. King Stanislaus appointed Mazzei to be Poland's representative in Paris, where he again met Jefferson.