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 but was never finished due to the king's death. Significant among Louis XV's contributions to Versailles were the "petit appartement du roi"; the "appartements de Mesdames", the "appartement du dauphin", the "appartement de la dauphine" on the ground floor; and the two private apartments of Louis XV – "petit appartement du roi au deuxième étage" (later transformed into the "appartement de Madame du Barry") and the "petit appartement du roi au troisième étage" – on the second and third floors of the palace. The crowning achievements of Louis XV's reign were the construction of the Opéra and the Petit Trianon.