[5] The imposing Alcázar of Madrid provided both a safe for the royal treasure and a habitual residence to the Trastámara monarchs in the late Middle Ages.
Construction spanned the years 1738 to 1755[7] and followed a Berniniesque design by Filippo Juvarra and Giovanni Battista Sacchetti in cooperation with Ventura Rodríguez, Francesco Sabatini, and Martín Sarmiento.
Other collections of great historical and artistic importance preserved in the building include the Royal Armoury of Madrid, porcelain, watches, furniture, silverware, and the world's only complete Stradivarius string quintet.
[5] During the War of the Castilian Succession (1476) the troops of Joanna la Beltraneja were besieged in the alcázar, during which the building suffered severe damage.
Italian architect Filippo Juvarra oversaw work on the new palace and devised a lavish project inspired by Bernini's plans for the Louvre.
Sacchetti designed the structure to encompass a large square courtyard and resolved sightline problems by creating projecting wings.
Sabatini's original idea was to frame the Plaza de la Armería with a series of galleries and arcades, to accommodate various dependencies[clarification needed], by constructing two wings along the square.
Alfonso's plans were designed by the architect José Segundo de Lema and consisted of remodeling several rooms, replacing marble floors with parquet, and adding period furniture.
This was adorned with a series of statues of saints and kings, but these were relocated elsewhere under the reign of Charles III to give the building a more classical appearance.
These include statues of the Aztec ruler Moctezuma II and the Inca emperor Atahualpa, works by Juan Pascual de Mena and Domingo Martínez, respectively.
Representations of the Roman emperors Honorius, Theodosius I, and Arcadius by G.D. Olivieri, and Trajan by Felipe de Castro were placed in the Prince's courtyard.
Flanking Sabatini's clock the Statues of Philip V, Ferdinand VI, Barbara of Braganza and Maria Luisa of Savoy interspersed with The Rising Sun Following the Zodiac.
Although the plaza was part of Sacchetti's plan for the palace, construction did not begin until 1808 when King Joseph Bonaparte, who ordered the demolition of approximately 60 medieval structures, that included a church, monastery and royal library, located on the site.
Joseph was deposed before construction was completed, it was finished by Queen Isabella II who tasked architect Narciso Pascual Colomer with creating the final design in 1844.
Engineers felt the statues were too heavy for the palace balustrade, so they were left on ground level where their lack of fine detail is readily apparent.
[18][19] Isabel II laid out the grounds so that Pietro Tacca's equestrian statue of Philip IV was placed in the center, opposite the Prince's Gate.
[20] These gardens are so named because the Muslim leader Ali ben Yusuf allegedly camped here with his troops in 1109 during an attempted reconquest of Madrid.
The first improvements to the area occurred under King Philip IV, who built fountains and planted various types of vegetation, but its overall look remained largely neglected.
Between the Fountain of Tritons and the palace is The Large Cavern or Grotto (Camellia House), built by Juan de Villanueva during the reign of Joseph Bonaparte.
These gardens feature a large rectangular pond which is surrounded by four fountains and statues of Spanish kings which were originally intended to crown the Royal Palace.
Examples in the holdings include Rococo in gold with iron lace, Neoclassical in polychrome and Romantic with Gothic and Renaissance motifs.
The Archives of the Royal Palace contains approximately twenty thousand articles ranging from the Disastrous decade (1823-1833) to the proclamation of the Second Spanish Republic in 1931.
de Lema and E. Repulles, was opened in 1897[30] The collection highlights the tournament pieces made for Charles V and Philip II by the leading armourers of Milan and Augsburg.
Among the most remarkable works are full armour and weapons that Emperor Charles V used in the Battle of Mühlberg, and which was portrayed by Titian in his famous equestrian portrait housed at the Museo del Prado.
Still, the armoury retains some of the most important pieces of this art in Europe and the world, including a shield and burgonet by Francesco and Filippo Negroli, one of the most famous designers in the armourers' guild.
[32][33] The Hall of Columns has a ceiling fresco by Giaquinto, representing The Sun before Which All the Forces of Nature Awaken and Rejoice, an allegory of the king as Apollo.
Bronze sculptures include the Four Cardinal Virtues, four of the Seven Planets, Satyr, Germanicus, and four Medici lions flanking the dual throne.
[42] The Chamber of the Infante Luis, Musical Instruments Room, has a ceiling fresco by Francisco Bayeu depicting Providence Presiding over the Virtues and Faculties of Man.
[44][45] Formerly the apartment of Alfonso XIII's mother, Maria Christina of Austria, the room contains Charles III's throne, scepter and crown.