The last duke of Lorraine was Stanislaus I, the former king of Poland. A devout Catholic, an author and a philanthropist, Stanislaus had a church built and several follies in his gardens for the amusement and education of visiting Polish nobility and followers of the Enlightenment. The more famous visitors to his court were Voltaire, Jean-Jacques Rousseau, André Morellet, and Montesquieu. After the death of his father-in-law in 1766, Louis XV of France annexed the duchy and turned the castle into a barracks, but much of the original construction has survived, and what remains is open to the public and the château's intricate parterre gardens, designed by Yves Hours (a pupil of André Le Nôtre) in 1711 and Louis de Nesle in 1724, are a public park today.