Royal Palace of La Granja de San Ildefonso (farm) alongside the lodge and shrine. The site was purchased from the monks in 1719 by King Philip V, after his summer palace nearby at Valsaín burned to a shell. He was the first Spanish king from the French Bourbon dynasty. Beginning in 1721, Philip began building a new palace and gardens modeled on Versailles, built by his grandfather, Louis XIV of France. Like Versailles it embraced a "cour d'honneur" on the approaching side, and formal gardens, with a main axis centred on the palace, that were surrounded by woodland in which further hidden garden features were disposed. Like Versailles,
Palace of Versailles in 1804, he considered making Versailles his residence, but abandoned the idea because of the cost of the renovation. Prior to his marriage with Marie-Louise in 1810, he had the Grand Trianon restored and refurnished as a springtime residence for himself and his family, in the style of furnishing that it is seen today. In 1815, with the final downfall of Napoleon, Louis XVIII, the younger brother of Louis XVI, became King, and considered returning the royal residence to Versailles, where he had been born. He ordered the restoration of the royal apartments, but the task and cost was too