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,
History of the Palace of Versailles did not reside in the château, apartments were, however, arranged and decorated for the use of the empress Marie-Louise. The emperor chose to reside at the Grand Trianon. The château continued to serve, however, as an annex of the Hôtel des Invalides Nevertheless, on 3 January 1805, Pope Pius VII, who came to France to officiate at Napoléon's coronation, visited the palace and blessed the throng of people gathered on the "parterre d'eau" from the balcony of the Hall of Mirrors. The Bourbon Restoration saw little activity at Versailles. Areas of the gardens were replanted but no significant restoration and