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 more classical pavilion designed by Mansart, with a terrace and walls faced with different colored slabs of marble. After the Revolution, the Trianon served as a residence for both Napoleon I and later for King Louis-Philippe when they visited Versailles. It is decorated today largely as it was under Napoleon and Louis-Philippe. The Petit Trianon was created between 1763 and 1768 by Ange-Jacques Gabriel for Louis XV. The square shaped building, with each facade different, was a prototype of Neoclassicism in France. The most ornate facade, with Corinthian columns, faced the French landscape garden. Louis XVI gave the Petit Trianon