 United with the French crown under the reign of Henri IV, it was transformed at the end of the 17th century by Vauban.The castle was later turned into a state prison.It 'welcomed' many famous prisoners, the last of whom was Prince Louis-Napoléon Bonaparte (the future Napoléon III) who, after six years, escaped by adopting the identity of a painter, Badinguet.