He returned to Poland in 1788, and on the sejmik at Wyszogród land he was elected the deputy to the national Sejm (parliament), thus becoming a member of the famous Great Sejm. He became allied to the Poniatowski family.