Louis-Napoléon Bonaparte (later Napoleon III of France) visited the castle in 1850. As emperor, he asked Viollet-le-Duc in 1857 to undertake its restoration, which was continued by Maurice Ouadou and then Juste Lisch until 1885. There was no question of a simple repair to the habitable parts (the keep and annexes): the "picturesque" ruins in front were to be kept for decor. In 1861, the project grew in scale: the sovereign wanted to create an imperial residence, so the castle was to be entirely rebuilt. The works, which would cost 5 million francs, of which 4 million were to come from the civil list, were stopped in 1885, six years after the death of Viollet-le-Duc. The departure of Napoléon III had halted the reconstruction and, through lack of money, the decoration of rooms was unfinished. Inside, Viollet-le-Duc produced more a work of invention than restoration (polychrome paintings). He imagined how the castle ought to have been, rather than basing his work on the strict history of the building. On the other hand, with the exterior he showed an excellent knowledge of the military architecture of the 14th century.