The Royal Palace of Madrid (Palacio Real de Madrid) is the official residence of the Spanish Royal Family at the city of Madrid, but it is only used for state ceremonies. Several rooms in the palace are regularly open to the public except during state functions.
The palace is located on the site of a 9th-century Alcázar (Muslim-era fortress), near the town of Magerit, constructed as an outpost by Muhammad I of Córdoba and inherited after 1036 by the independent Moorish Taifa of Toledo. After Madrid fell to King Alfonso VI of Castile in 1083, the edifice was only rarely used by the kings of Castile. In 1329, King Alfonso XI of Castile convened the cortes of Madrid for the first time. King Felipe II moved his court to Madrid in 1561.
The old Alcázar was built on the location in the 16th century. After it burned 24 December 1734, King Felipe V ordered a new palace built on the same site. Construction spanned the years 1738 to 1755 and followed a Berniniesque design by Filippo Juvarra and Giovanni Battista Sacchetti in cooperation with Ventura Rodríguez, Francesco Sabatini, and Martín Sarmiento. King Carlos III first occupied the new palace in 1764.
The last monarch who lived continuously in the palace was King Alfonso XIII, although Manuel Azaña, president of the Second Republic, also inhabited it, making him the last head of state to do so.
The palace has 135,000 square metres of floor space and contains 3,418 rooms. It is the largest royal palace in Europe by floor area. The interior of the palace is notable for its wealth of art and the use of many types of fine materials in the construction and the decoration of its rooms. These include paintings by artists such as Caravaggio, Francisco de Goya, and Velázquez, and frescoes by Giovanni Battista Tiepolo, Juan de Flandes, Corrado Giaquinto, and Anton Raphael Mengs. 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.
References:Rosenborg Palace was built in the period 1606-34 as Christian IV’s summerhouse just outside the ramparts of Copenhagen. Christian IV was very fond of the palace and often stayed at the castle when he resided in Copenhagen, and it was here that he died in 1648. After his death, the palace passed to his son King Frederik III, who together with his queen, Sophie Amalie, carried out several types of modernisation.
The last king who used the place as a residence was Frederik IV, and around 1720, Rosenborg was abandoned in favor of Frederiksborg Palace.Through the 1700s, considerable art treasures were collected at Rosenborg Castle, among other things items from the estates of deceased royalty and from Christiansborg after the fire there in 1794.
Soon the idea of a museum arose, and that was realised in 1833, which is The Royal Danish Collection’s official year of establishment.