King Felipe V had the palace built to replace the Alcazar that was burned down. It is made of limestone and granite. It was supposed to look a little like the Palace of Versailles in France. Juan Bautista Sachetti was in charge of building the palace. They started to build it in 1738. Carlos III moved into the palace in 1764. It took a hundred years to decorate all the rooms.