For some time the lordship was in the hands of Jean François Paul de Gondi, cardinal de Retz, who lived in the town for a number of years, and there composed his memoirs.[3] From him it was purchased by Charles IV, Duke of Lorraine.[3] In 1744 it became the residence of Stanisław Leszczyński, king of Poland, who spent a great deal of care on the embellishment of the town, castle and neighbourhood.[3]