In politics he represented the pro-French faction, promoting the French candidate in the royal election of 1668, and become a vocal supporter of French policies in the Commonwealth. He accepted French pension and citizenship. When king John III Sobieski distanced himself from France, and allied with Austria, he was accused of treason and emigrated to France in 1683, where he assumed the title of "comte de Châteauvillain" and spent the last years of his life as a royal secretary. The Sejm of 1686 stripped him of all offices and titles and banned him from the country.