{"id":69807,"date":"2025-05-07T08:01:00","date_gmt":"2025-05-07T04:01:00","guid":{"rendered":"https:\/\/www.headout.com\/blog\/?p=69807"},"modified":"2025-05-11T17:31:31","modified_gmt":"2025-05-11T13:31:31","slug":"royal-palace-of-madrid","status":"publish","type":"post","link":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/","title":{"rendered":"Royal Palace of Madrid: Explore Spain&#8217;s grandest royal residence"},"content":{"rendered":"<p>Madrid\u2019s Royal Palace is splendour manifested as a larger-than-life, imperial home. No wonder, the 18th-century edifice remains, even today, the official residence of the Spanish monarchs and is the site of state visits. Borrowing heavily from architectural innovations that evolved in France and Italy, the makers of the Royal Palace of Madrid lavished this expansive set-up with unbridled gilding details, ceiling frescoes that highlighted the empire\u2019s glory, and covered entire rooms with astonishing embroidered satins and silks that made for unbelievably plush dwellings. A must-visit on your trip to Madrid, the Royal Palace can easily overwhelm the unsuspecting visitor, which is why you need to read this detailed guide that unpacks this historical marvel.<\/p>\n<h2>Essential information for visiting the Royal Palace of Madrid <\/h2>\n<p><span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/a9837732f3f73626dbc37decd4d28bfe-Royalpalacemadrid.jpg?auto=compress&amp;fm=pjpg&amp;fit=min&amp;crop=faces&amp;w=220&amp;h=150\" style=\"width: 300px;\" width=\"220\" height=\"150\" alt=\"Royal Palace of Madrid \" data-pagespeed-url-hash=\"344862734\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"><\/span><span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/1a7a6ce73ab596814ce95fe7596ad21f-RoyalPalaceofMadridcrownroom.jpg?auto=compress&amp;fm=pjpg&amp;fit=min&amp;crop=faces&amp;&amp;w=335&amp;h=225\" style=\"width: 300px;\" width=\"220\" height=\"150\" alt=\"Royal Palace of Madrid \" data-pagespeed-url-hash=\"618233068\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"><\/span><span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/5e753887-e613-46bf-a29b-511dbfd12e69-1746516652351-271364.jpg?auto=compress&amp;fm=pjpg&amp;fit=min&amp;crop=faces&amp;w=220&amp;h=150\" width=\"220\" height=\"150\" alt=\"Royal Palace of Madrid \" style=\"width: 300px;\" data-pagespeed-url-hash=\"3955702436\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"><\/span><\/p>\n<h4>Handy information<\/h4>\n<table>\n<tbody>\n<tr>\n<td>\u23f0 Suggested Duration:<\/td>\n<td>3 hours <\/td>\n<\/tr>\n<tr>\n<td>\u2600\ufe0f Best Time to Visit:<\/td>\n<td>Early morning <\/td>\n<\/tr>\n<tr>\n<td>\ud83d\udc9c Must-see:<\/td>\n<td>Throne Room<\/td>\n<\/tr>\n<tr>\n<td>\ud83c\udf9f\ufe0f Royal Palace of Madrid entry ticket: <\/td>\n<td><a href=\"https:\/\/www.headout.com\/royal-palace-of-madrid-tickets-c-2481\/\" target=\"_blank\" data-wpel-link=\"exclude\" rel=\"noopener\">\u20ac12 onwards<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Must-see <\/h4>\n<p>Sabatini Gardens Plaza de la Armer\u00eda Royal Armory The Crown Room<\/p>\n<h4>Things to know <\/h4>\n<p>Number of visitors: Close to 2 million visitors per yearBuilt: 1738 \u2013 1755Principal architect: Filippo JuvarraArchitectural style: Baroque, classicism<\/p>\n<h4>Opening Hours And Address<\/h4>\n<p><b>October to March: <\/b> Monday to Saturday: 10am to 6pm Sunday: 10am to 4pm <b>April to September<\/b> Monday to Saturday: 10am to 7pm Sunday: 10am to 4pm<b>Address:<\/b> C. de Bail\u00e9n, s\/n, 28071 Madrid, Spain<a href=\"https:\/\/www.google.com\/maps\/place\/Royal+Palace+of+Madrid\/@40.417955,-3.714312,15z\/data=!4m2!3m1!1s0x0:0x2e7fec79d6ce4851?sa=X&amp;ved=2ahUKEwi3-4Kij7XyAhUIdCsKHUnXAE4Q_BIwKHoFCIwBEAU\" target=\"_blank\" data-wpel-link=\"external\" rel=\"external nofollow noopener\">Get Directions<\/a><\/p>\n<h2 id=\"vatican1\">Why you must visit the Royal Palace of Madrid<\/h2>\n<p>    <img decoding=\"async\" data-src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/5321688aaea35d00c50a8c8dd33a00ed-RoyalPalaceofMadridmainstaircase.jpg?fm=pjpg&amp;auto=compress&amp;w=1200&amp;crop=faces&amp;fit=min\" data-sizes=\"auto\" alt=\"Royal Palace of Madrid \" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/5321688aaea35d00c50a8c8dd33a00ed-RoyalPalaceofMadridmainstaircase.jpg?fm=pjpg&amp;auto=compress&amp;w=1200&amp;crop=faces&amp;fit=min\" data-pagespeed-url-hash=\"177477554\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\">  <\/p>\n<p>An unforgettable showcase of opulence, the Royal Palace of Madrid is one of Europe&#8217;s most magnificent edifices. Built in the 18th century, this palatial abode remains the largest palace in all of Western Europe. While it is the official residence of the Spanish monarchy, it is only occasionally used by the royal for state functions. However, each day, the gates are thrown open to throngs of visitors who come to take in the lavish rooms decorated with lush furnishings and frescoes, and embellished with gildings. Also vying for attention are masterpieces from Goya, a throne room that befits the kings, a shiny armoury, and endless sparkling chandeliers. When you\u2019ve had an eyeful of the Palace\u2019s over-the-top interiors, you can stop by the surrounding gardens that offer tranquillity.<\/p>\n<h2>Know before you purchase tickets to the Royal Palace of Madrid<\/h2>\n<p>The monument receives close to 2 million visitors each year. To avoid disappointment and the crowds at the ticket window, we recommend you pre-book your tickets in advance.<\/p>\n<p>Tickets to the Palace also grant you access to the gardens, so make sure you stop by for a breath of fresh air and to take in the well-maintained grounds.<\/p>\n<p>The Royal Palace of Madrid is steeped in history, and each room has historical and architectural significance. A guided tour will unpack all the details of the monument, ensuring a full experience.<\/p>\n<p>For a few extra euros, you can sign up for audio tours that share information on the Palace and its many rooms. Available in various languages, the audio tours will help you make the most of your experience on a budget.<\/p>\n<p>If you are planning to buy tickets onsite, do note that they do not accept \u20ac200 \u20ac500 bills.<\/p>\n<h2>Recommended tickets to Royal Palace of Madrid<\/h2>\n<h2>The Royal Palace of Madrid\u2019s history<\/h2>\n<p>    <img decoding=\"async\" data-src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/d446c81f4eeddca4b0f3907a4f33be74-10403-Madrid-Skip-the-LineTicketstoRoyalPalaceofMadrid-099.jpg?fm=pjpg&amp;auto=compress&amp;w=1200&amp;crop=faces&amp;fit=min\" data-sizes=\"auto\" alt=\"Royal Palace of Madrid \" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/d446c81f4eeddca4b0f3907a4f33be74-10403-Madrid-Skip-the-LineTicketstoRoyalPalaceofMadrid-099.jpg?fm=pjpg&amp;auto=compress&amp;w=1200&amp;crop=faces&amp;fit=min\" data-pagespeed-url-hash=\"177477554\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\">  <\/p>\n<p>Long, long ago, in the 800s, a Moorish-era alcazar stood at the same site where the Royal Palace of Madrid stands today. For centuries, the Alcazar was passed down to the rulers of the region until the fateful Christmas Eve in 1734, when the structure burned to the ground.<\/p>\n<p>Philip V, the first of the Bourbon dynasty, who ruled Madrid during the time of the ill-fated fire seized the opportunity to rebuild the palace according to his over-the-top desires. Having spent his childhood in France, the monarch sought to recreate the Palace of Versailles in Spain\u2019s heartland. And to fulfil his vision, he brought on board architect, Filippo Juvarra, who also drew inspiration from France\u2019s Louvre to design a dream palace in the Baroque style.<\/p>\n<p>However, the lavish Palace remained unfinished at the time of the deaths of Philip V and Juvarra, and it fell on successive kings and architects, including, to finish up the project. After enlarging the edifice, Charles III became the first to move in in 1764.<\/p>\n<p>The Royal Palace continued to see modifications and renovations through the centuries, taking on other European-style flourishes. The Sabatini Gardens which were added in 1933, were one of the last major additions to the colossal structure.<\/p>\n<p>Today, the Royal Palace sits on a whopping 1, 450,000 sq feet, has 3,418 rooms and is one of Europe\u2019s best-known royal residences.<\/p>\n<h2>The Royal Palace of Madrid\u2019s architecture<\/h2>\n<p>     <img decoding=\"async\" data-src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/25f5ab84274e67b99f6de0d7a7452378-Royal%20Palace%20in%20Madrid.jpg?fm=pjpg&amp;auto=compress&amp;w=1200&amp;crop=faces&amp;fit=min\" data-sizes=\"auto\" alt=\"Royal Palace of Madrid \" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/25f5ab84274e67b99f6de0d7a7452378-Royal%20Palace%20in%20Madrid.jpg?fm=webp&amp;auto=compress&amp;w=1100&amp;crop=faces&amp;fit=min\" data-pagespeed-url-hash=\"177477554\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"><\/p>\n<p>Conceptualised to rival the grand palaces of France, Madrid\u2019s Royal Palace was envisioned in the Baroque style by Filippo Juvarra. Its colonnaded exteriors evoke the Louvre Palace while the grand, gilded interiors remind you of the Palace of Versailles.<\/p>\n<p>To prevent the palace from suffering the same fate as the burnt-down Alcazar that stood at the same site previously, it was built in stone under the supervision of Giambattista Sacchetti, who took over as the architect after Juvarra\u2019s passing.<\/p>\n<p> In 1764, after Charles III moved into the completed palatial residence, the Royal Palace\u2019s interiors\u2019 glamour quotient was scaled up with Italian-style frescoes by artists like Giambattista Tiepolo and Anton Raphael Mengs. From wall to ceiling, the Palace was also embellished in the over-the-top rococo style that ensured that pretty much every inch of the palace was adorned in motifs and gilding.<\/p>\n<p>The final touches were added by Ferdinand VII, who furnished the Palace with neoclassical, French furniture and larger-than-life crystal and bronze chandeliers.<\/p>\n<h2>Your Royal Palace of Madrid tour deconstructed<\/h2>\n<p>While there are close to 3,500 rooms in the Royal Palace of Madrid, only about fifty are open for public viewing. Still, that is plenty to keep you occupied for the better part of two to three hours. Here is a list of must-sees during your Royal Palace of Madrid tour.<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/be54f1df54846661f6d9b7ff94e73b9a-23089---Madrid---Combo--Save-5----Royal-Palace-of-Madrid---Liria-Palace-Tickets---14.jpg\" alt=\"Royal Palace of Madrid stairs\" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> The main staircase<\/p>\n<p>Making a grand first impression was clearly important to the Spanish monarchs! And the Palace\u2019s sweeping main staircase stands testament to that. As you enter this royal abode, the stairs are topped with high vaulted ceilings covered in frescoes garlanded with gildings and stucco work, its bannisters guarded by lions sculpted in marble, and the walkway lit up by a series of lamps. <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/f6075dccf5d6ff56746a5659993a73a4-Porcelain%20Room%20-%20Royal%20Palace%20Madrid.jpg?\" alt=\"Royal Palace of Madrid Gasparini's Salon\" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> Gasparini&#8217;s Salon<\/p>\n<p> In 1759, Mattia Gasparini, an Italian artist, arrived at the Royal Palace of Madrid to give the king\u2019s chamber a makeover. The resulting salon will surely have you \u2018Gasp\u2019ing! The Rococo-style walls of the room are covered in embroidered satin featuring a dizzying pattern of vines, flowers, leaves, and birds. These spill over to the furniture, the frescoed ceiling, and the decorated marble flooring, ensuring the room comes together to look like a royal wonderland.  <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/27983566d29e478cec37880cfb89059b-22651-madrid-madrid-day-tour-with-prado-museum-and-royal-palace-tickets-06.jpg\" alt=\"Royal Palace of Madrid The Throne Room \" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> The Throne Room<\/p>\n<p> The Palace\u2019s centrepiece, the Throne Room, covered in a deep-red, embroidered Genoese velvet, exudes royalty. On a platform, sits a pair of thrones while the rest of the room is adorned with sculptures, mirrors, and carved furniture. Look up and you\u2019ll see Tiepolo\u2019s dreamy fresco \u2013 The Triumph of the Spanish Monarchy.   <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/da04ccd00a54022c75ad0af45824fe80-royalpalacemadrid-03.jpg\" alt=\"Royal Palace of Madrid\" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> The Royal Armoury<\/p>\n<p> Here you\u2019ll find all the knights in shining armour you need! Housed in a large, rectangular room, painted in red and displaying large tapestries, the Armoury showcases Spain\u2019s military lineage through the centuries. The Armoury is lined with knighted figures mounted on wooden horses, brandishing spears and swords. Also on display are military trophies, gifts, and weapons from the personal collection of Spain\u2019s monarchy. <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/2688b3e7f6bfcac603da1074eb749888-royalpalacemadrid-49.jpg\" alt=\"Royal Palace of Madrid\" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> Plaza de la Armer\u00eda<\/p>\n<p>A vast square that sits in front of the Palace, the Plaza de la Armer\u00eda is an excellent spot to get wide-angle photos of the palace and stroll around admiring the exteriors of the Palace. Across the square, Almudena Cathedral beckons. <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/cdn-imgix.headout.com\/media\/images\/63c0ca87272d0dff5e39c3c30ec04b46-10403-Skip-the-LineTicketstoRoyalPalaceofMadrid-005.jpg?\" alt=\"Royal Palace of Madrid\" data-pagespeed-url-hash=\"1220571733\" onload=\"pagespeed.CriticalImages.checkImageForCriticality(this);\"> Sabatini Gardens<\/p>\n<p> One of the last additions to the palatial complex, the Sabatini Gardens, named after one of the key architects of the Palace, is a serene spot to catch your breath after you\u2019ve toured the ostentatious palace. The gardens were once occupied by the royal stables but were converted to a green oasis featuring pools and sculptures in 1933. <\/p>\n<h2 id=\"vatican16\">Best time to visit the Royal Palace of Madrid<\/h2>\n<p>Millions flock to the Royal Palace of Madrid, making it one of the most visited sites in the Spanish capital. We recommend early mornings or late evenings for a visit as the crowds tend to be leaner during these times.<\/p>\n<p>In terms of season, we recommend spring (between April and June) or fall (between September and November). These are off-seasons, ensuring that you won\u2019t have to weave through the hordes, and you\u2019ll be able to pay greater attention to the beauty of the palace.<\/p>\n<h2>All you need to know before visiting the Royal Palace of Madrid<\/h2>\n<h3>Opening Hours<\/h3>\n<h4>October to March<\/h4>\n<ul>\n<li><b>Monday to Saturday:<\/b> 10am to 6pm<\/li>\n<li><b>Sunday:<\/b> 10am to 4pm<\/li>\n<\/ul>\n<h4>April to September<\/h4>\n<ul>\n<li><b>Monday to Saturday:<\/b> 10am to 7pm<\/li>\n<li><b>Sunday:<\/b> 10am to 4pm<\/li>\n<\/ul>\n<p>The Palace is closed on several days of the year due to public holidays or when hosting State events. We recommend you check out the official website before making a booking.<\/p>\n<h3>Royal Palace of Madrid entrances<\/h3>\n<p>There are two entrances to the Royal Palace of Madrid. For individuals and small groups, access is through the door of the esplanade of the Almudena. The is located at the corner of Calle Bail\u00e9n.Large groups can access the Palace through the Puerta Bail\u00e9n door, which is located in front of Calle Requena.<\/p>\n<h3>Royal Palace of Madrid directions<\/h3>\n<ul>\n<li><b>By bus:<\/b> Routes 3, 25, 39 and 148 stop at Plaza de Oriente, which provides easy access to the Palace.<\/li>\n<li><b>By metro:<\/b> Take lines 5 or 2 to the \u00d3pera station. From here, the Palace is a short walk away.<\/li>\n<li><b>By train:<\/b> Take the train to the Pr\u00edncipe P\u00edo Station. The Palace is a 15-minute walk from here.<\/li>\n<\/ul>\n<h3>Royal Palace of Madrid map<\/h3>\n<h2>Insider tips for visiting the Royal Palace of Madrid<\/h2>\n<ul>\n<li>If you are signing up for an audio guide, you can choose between in-depth, express, and children&#8217;s mode to tailor the commentary to your visit.<\/li>\n<li>While tickets are usually available on-site, the lines at the ticket windows are lengthy. Book your tickets online and you\u2019ll be able to access the monument much quicker.<\/li>\n<li>You can catch the Changing of the Guards ceremony every day at noon at the Plaza de la Armeria.  However, do note that the ceremony does not take place in January, August and September and when the Palace is in official use.<\/li>\n<li>Access to the Royal Palace of Madrid is free between 5:00 and 7:00 p.m., Monday through Thursday. This works well if you are travelling to Madrid on a budget.<\/li>\n<li>The official website puts out a list of the days the Palace or part of the monument are closed every month. We recommend checking those before making a booking.<\/li>\n<\/ul>\n<h2>Ready to visit Madrid?<\/h2>\n<h3>Prado Museum<\/h3>\n<p>Spain\u2019s foremost art museum is a treasure trove of European art from the 16th to the 20th century. The museum itself began in the 1800s, showcasing pieces from the royal collection that then broadened its horizons to house leading Spanish painters. Today, you can spend hours here gazing at close to 4,000 works of art from around the world. We recommend you keep your eyes peeled for the astounding works of Goya, El Greco, Rubens, and Vel\u00e1zquez.<\/p>\n<h3>Reina Sofia Museum<\/h3>\n<p>Deep dive into the world of modern art at the Reina Sofia Museum, which is one part of the Golden Triangle of Museums in Madrid. The biggest draw is, of course, Picasso\u2019s \u2018Guernica\u2019 \u2013 that recounts the grim tale of the Spanish Civil War. But don\u2019t stop there. The paintings at the museum, belonging to the likes of Salvador Dal\u00ed, Joan Mir\u00f3, Juan Gris and others, paint a vivid picture of the modern age.<\/p>\n<h3>Thyssen-Bornemisza Museum<\/h3>\n<p>Once part of the private collection of the Barons of Thyssen-Bornemisza, this museum showcases an astounding range of work from the master artists from around Europe and the world. The works span early Italian paintings starting from the 14th century to the masterpieces from the Renaissance and Baroque eras, alongside North American works from the 19th century.<\/p>\n<h3>El Retiro Park<\/h3>\n<p>Spread across 292 acres, El Retiro sits pretty at the edge of central Madrid. A great spot to unwind for the weary traveller, El Retiro\u2019s beauty lies in its abundant greenery, vintage fountains, old-world sculptures, and still lakes. A local favourite, the park is a vibrant space where people come to hang out, enjoy a picnic, or indulge in a sport. The weekends see the Park hosting live concerts and performances.<\/p>\n<h3>Santiago Bernabeu Stadium<\/h3>\n<p>Pay homage to the gods of football at Santiago Bernabeu Stadium \u2013 Real Madrid\u2019s celebrated home turf. A must-visit for sports buffs, a whirlwind tour of the Stadium presents you with the opportunity to make your way through this hallowed arena, including the tunnels, press rooms, the locker rooms and the brimming trophy room.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p>[tcb-script src=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js&#8221; integrity=&#8221;sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx\/qtq\/1itJ0C2ejDxltZVFg==&#8221; crossorigin=&#8221;anonymous&#8221;][\/tcb-script]            <a>             Summary        <\/a>                                                               Royal Palace of Madrid Guide                                        <\/p>\n<ul id=\"summary-mobile-ul\">\n<li><a>Palacio de Liria Madrid &#8211; 10 Second History<\/a><\/li>\n<li><a>Palacio de Liria Madrid Design &amp; Architecture<\/a><\/li>\n<li><a>Why You Should Visit Palacio de Liria<\/a><\/li>\n<li><a>Palacio de Liria Madrid Tour Deconstructed <\/a><\/li>\n<li><a>Palacio de Liria Madrid Tickets<\/a><\/li>\n<li><a>Tips for your Palacio de Liria Madrid Visit<\/a><\/li>\n<li><a>Visiting Palacio de Liria  <\/a><\/li>\n<li><a>Amenities at Palacio de Liria Madrid <\/a><\/li>\n<li><a>Restaurants near Liria Palace Madrid <\/a><\/li>\n<li><a>Hotels near Liria Palace Madrid <\/a><\/li>\n<li><a>Things to do near Palacio de Liria Madrid<\/a><\/li>\n<li><a>Palacio de Liria Reviews<\/a><\/li>\n<li><a>Palacio de Liria Madrid &#8211; FAQs<\/a><\/li>\n<\/ul>\n<p>             [tcb-script]var tgids = [6732, 9682, 7998,10644, 9379];[\/tcb-script][tcb-script]        jQuery(document).ready(function () {            jQuery(&#8220;.row.post-width&#8221;).prepend(`&lt;div&gt;                    &lt;div id=&#8221;summary-list-wrapper&#8221;&gt;                        &lt;div&gt;                            &lt;div&gt;                               Royal Palace of Madrid Guide                            &lt;\/div&gt;                            &lt;div&gt;&lt;\/div&gt;                        &lt;\/div&gt;                        &lt;ul id=&#8221;summaryList&#8221;&gt;                        &lt;\/ul&gt;                    &lt;\/div&gt;                &lt;\/div&gt;`);            let allH2 = document.querySelectorAll(&#8220;h2.add-to-summary&#8221;);            for (i = 0; i &lt; allH2.length; i++) {                jQuery(&#8220;#summaryList&#8221;).append(`&lt;li&gt;&lt;a&gt;${allH2[i].innerHTML}&lt;\/a&gt;&lt;\/li&gt;`);                jQuery(&#8220;#summary-mobile-ul&#8221;).append(`&lt;li&gt;&lt;a&gt;${allH2[i].innerHTML}&lt;\/a&gt;&lt;\/li&gt;`);            }            let allA = document.querySelectorAll(&#8220;#summaryList li a&#8221;);            let header = jQuery(document.getElementsByTagName(&#8220;header&#8221;)[0])            let isMobile = false;            if(jQuery(window).width()&lt;=765){                allA = document.querySelectorAll(&#8220;#summary-mobile-ul li a&#8221;);                isMobile = true;            }            let modal = document.getElementById(&#8220;summary-wrapper-mobile&#8221;);            function findH2WithThisTag(text) {                if(isMobile){                    header.css(&#8220;display&#8221;,&#8221;block&#8221;);                    modal.style.display = &#8220;none&#8221;;                }                for (i = 0; i &lt; allH2.length; i++) {                    if (allH2[i].innerHTML == text) {                        jQuery(&#8220;html, body&#8221;).animate(                            {                                scrollTop: jQuery(allH2[i]).offset().top &#8211; 100,                            },                            1000);                        break;                    }                }            }            for (i = 0; i &lt; allA.length; i++) {                allA[i].addEventListener(&#8220;click&#8221;, function (data) {                    findH2WithThisTag(data.target.innerHTML);                }, false);            }            jQuery(&#8220;.open-summary-mobile&#8221;)[0].addEventListener(&#8220;click&#8221;, function () {                modal.style.display = &#8220;block&#8221;;                header.css(&#8220;display&#8221;,&#8221;none&#8221;);            }, false);            window.onclick = function (event) {                if (event.target == modal) {                    modal.style.display = &#8220;none&#8221;;                    header.css(&#8220;display&#8221;,&#8221;block&#8221;);                }            }           function scrollUl(i){                \/\/ if(i&gt;=1){                \/\/     offset = jQuery(allA[i-1])[0].offsetTop &#8211; jQuery(allA[0])[0].offsetTop;                \/\/ }                let offset = jQuery(allA[i])[0].offsetTop &#8211; jQuery(allA[0])[0].offsetTop;                  if(isMobile){                    \/\/ if(Math.abs(jQuery(&#8216;#summary-mobile-ul&#8217;)[0].scrollTop &#8211; offset) &gt;= 10){                    \/\/     jQuery(&#8216;#summary-mobile-ul&#8217;).animate({scrollTop: offset},1);                    \/\/ }                    let height = jQuery(window).height() &#8211; 45;                         let offsettop = parseInt((jQuery(allA[i])[0].offsetTop &#8211; jQuery(allA[0])[0].offsetTop) \/ height);                    let offsetbottom = parseInt((jQuery(allA[i])[0].offsetHeight &#8211; jQuery(allA[0])[0].offsetTop + jQuery(allA[i])[0].offsetTop)\/ height);                    if(offsettop==0 &amp;&amp; offsetbottom == 0){                        jQuery(&#8216;#summary-mobile-ul&#8217;).animate({scrollTop: 0},1);                    }else{                        jQuery(&#8216;#summary-mobile-ul&#8217;).animate({scrollTop: height*offsettop},1);                    }                }else{                    \/\/ if(Math.abs(jQuery(&#8216;#summaryList&#8217;)[0].scrollTop &#8211; offset) &gt;= 10){                    \/\/     jQuery(&#8216;#summaryList&#8217;).animate({scrollTop: offset},1);                    \/\/ }                    let offsettop = parseInt((jQuery(allA[i])[0].offsetTop &#8211; jQuery(allA[0])[0].offsetTop) \/ 400);                    let offsetbottom = parseInt((jQuery(allA[i])[0].offsetHeight &#8211; jQuery(allA[0])[0].offsetTop + jQuery(allA[i])[0].offsetTop)\/ 400);                    if(offsettop!=offsetbottom){                        jQuery(&#8216;#summaryList&#8217;).animate({scrollTop: offset},1);                    }else{                        jQuery(&#8216;#summaryList&#8217;).animate({scrollTop: 400*offsettop},1);                    }                }            }            document.body.onscroll = function (e) {                let topPosition = jQuery(window).scrollTop();                for (i = 0; i &lt; allA.length; i++) {                    jQuery(allA[i]).removeClass(&#8220;active&#8221;);                }                for (i = 0; i &lt; allH2.length; i++) {                    if (i == allH2.length &#8211; 1 &amp;&amp; allH2[i].offsetTop &lt;= topPosition &amp;&amp; !jQuery(allA[i]).hasClass(&#8220;active&#8221;)) {                        jQuery(allA[i]).addClass(&#8220;active&#8221;);                        scrollUl(i);                        break;                    } else if (i &lt; allH2.length &#8211; 1 &amp;&amp; allH2[i].offsetTop &lt;= topPosition &amp;&amp; allH2[i + 1].offsetTop &gt; topPosition &amp;&amp; !jQuery(allA[i]).hasClass(&#8220;active&#8221;)) {                        jQuery(allA[i]).addClass(&#8220;active&#8221;);                        scrollUl(i);                        break;                    }                }                let TextHeight = jQuery(&#8220;.small-12.medium-11.medium-centered.columns&#8221;)[0].offsetHeight + jQuery(&#8220;.small-12.medium-11.medium-centered.columns&#8221;)[0].offsetTop;                let summaryWrapperTop = jQuery(&#8220;#summary-list-wrapper&#8221;)[0].offsetTop;                let offsetTopPostWidth = jQuery(&#8220;.row.post-width&#8221;)[0].offsetTop;                if (summaryWrapperTop &lt; topPosition &#8211; 35 &#8211; offsetTopPostWidth &amp;&amp; TextHeight &gt; topPosition + jQuery(&#8220;#summary-list-wrapper&#8221;)[0].offsetHeight +30 ) {                    jQuery(&#8220;#summary-list-wrapper&#8221;).css(&#8220;position&#8221;, &#8220;fixed&#8221;);                    jQuery(&#8220;#summary-list-wrapper&#8221;).css(&#8220;top&#8221;, &#8220;25px&#8221;);                } else{                    jQuery(&#8220;#summary-list-wrapper&#8221;).css(&#8220;position&#8221;, &#8220;absolute&#8221;);                    jQuery(&#8220;#summary-list-wrapper&#8221;).css(&#8220;top&#8221;, &#8220;25px&#8221;);                }            }        });    [\/tcb-script]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Madrid\u2019s Royal Palace is splendour manifested as a larger-than-life, imperial home. No wonder, the 18th-century edifice remains, even today, the official residence of the Spanish monarchs and is the site of state visits. Borrowing heavily from architectural innovations that evolved in France and Italy, the makers of the Royal Palace of Madrid lavished this expansive [&hellip;]<\/p>\n","protected":false},"author":212,"featured_media":69809,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1465,1343,1223,1153],"tags":[6404,6269,6304,6267,6268,6270],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Visit the Royal Palace of Madrid \u2013 Spain&#039;s Largest Palace<\/title>\n<meta name=\"description\" content=\"Journey through Spain&#039;s royal history at the Royal Palace of Madrid. Explore its grand halls, art collections, and royal chambers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visit the Royal Palace of Madrid \u2013 Spain&#039;s Largest Palace\" \/>\n<meta property=\"og:description\" content=\"Journey through Spain&#039;s royal history at the Royal Palace of Madrid. Explore its grand halls, art collections, and royal chambers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/\" \/>\n<meta property=\"og:site_name\" content=\"Headout Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-07T04:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-11T13:31:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress\" \/>\n<meta name=\"author\" content=\"Navya D&#039;souza\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Navya D'souza\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visit the Royal Palace of Madrid \u2013 Spain's Largest Palace","description":"Journey through Spain's royal history at the Royal Palace of Madrid. Explore its grand halls, art collections, and royal chambers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/","og_locale":"en_US","og_type":"article","og_title":"Visit the Royal Palace of Madrid \u2013 Spain's Largest Palace","og_description":"Journey through Spain's royal history at the Royal Palace of Madrid. Explore its grand halls, art collections, and royal chambers.","og_url":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/","og_site_name":"Headout Blog","article_published_time":"2025-05-07T04:01:00+00:00","article_modified_time":"2025-05-11T13:31:31+00:00","og_image":[{"url":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress"}],"author":"Navya D'souza","twitter_card":"summary_large_image","twitter_image":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress","twitter_misc":{"Written by":"Navya D'souza","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#article","isPartOf":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/"},"author":{"name":"Navya D'souza","@id":"https:\/\/www.headout.com\/blog\/#\/schema\/person\/11fc83090405f42a88db23e3f82832f6"},"headline":"Royal Palace of Madrid: Explore Spain&#8217;s grandest royal residence","datePublished":"2025-05-07T04:01:00+00:00","dateModified":"2025-05-11T13:31:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/"},"wordCount":2820,"commentCount":0,"publisher":{"@id":"https:\/\/www.headout.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress","keywords":["c-2481","Landmarks","Madrid","Spain","Tickets","Wiki Pages"],"articleSection":["Landmarks in Madrid","Madrid Attractions","Royal Palace of Madrid","Things to do in Madrid"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/","url":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/","name":"Visit the Royal Palace of Madrid \u2013 Spain's Largest Palace","isPartOf":{"@id":"https:\/\/www.headout.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#primaryimage"},"image":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress","datePublished":"2025-05-07T04:01:00+00:00","dateModified":"2025-05-11T13:31:31+00:00","description":"Journey through Spain's royal history at the Royal Palace of Madrid. Explore its grand halls, art collections, and royal chambers.","breadcrumb":{"@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#primaryimage","url":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress","contentUrl":"https:\/\/cdn-imgix.headout.com\/tour\/22227\/TOUR-IMAGE\/34d5b5ec-8904-45a9-9429-d7b6252965bb-11711-madrid-fast-track-tickets-royal-palace-s---royal-kitchen-01.jpg?fm=pjpg&auto=compress","width":"1600","height":"999","caption":"Royal Palace of Madrid"},{"@type":"BreadcrumbList","@id":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Things to do in Madrid","item":"https:\/\/www.headout.com\/things-to-do-city-madrid\/"},{"@type":"ListItem","position":2,"name":"Madrid Attractions","item":"https:\/\/www.headout.com\/tickets-madrid-ca-1~6192\/"},{"@type":"ListItem","position":3,"name":"Landmarks in Madrid","item":"https:\/\/www.headout.com\/landmarks-madrid-sc-1007~6192\/"},{"@type":"ListItem","position":4,"name":"Royal Palace of Madrid","item":"https:\/\/www.headout.com\/blog\/royal-palace-of-madrid\/"},{"@type":"ListItem","position":5,"name":"Royal Palace of Madrid"}]},{"@type":"WebSite","@id":"https:\/\/www.headout.com\/blog\/#website","url":"https:\/\/www.headout.com\/blog\/","name":"Headout Blog","description":"Where will you go next?","publisher":{"@id":"https:\/\/www.headout.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.headout.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.headout.com\/blog\/#organization","name":"Headout","url":"https:\/\/www.headout.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.headout.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.headout.com\/blog\/wp-content\/uploads\/2016\/07\/headout-logo.png","contentUrl":"https:\/\/www.headout.com\/blog\/wp-content\/uploads\/2016\/07\/headout-logo.png","width":550,"height":84,"caption":"Headout"},"image":{"@id":"https:\/\/www.headout.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.headout.com\/blog\/#\/schema\/person\/11fc83090405f42a88db23e3f82832f6","name":"Navya D'souza","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.headout.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b8cb795e390368e22341fc6a6531b4be?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b8cb795e390368e22341fc6a6531b4be?s=96&r=g","caption":"Navya D'souza"},"url":"https:\/\/www.headout.com\/blog\/author\/navya-dsouza\/"}]}},"_links":{"self":[{"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/posts\/69807"}],"collection":[{"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/users\/212"}],"replies":[{"embeddable":true,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/comments?post=69807"}],"version-history":[{"count":86,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/posts\/69807\/revisions"}],"predecessor-version":[{"id":201082,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/posts\/69807\/revisions\/201082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/media\/69809"}],"wp:attachment":[{"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/media?parent=69807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/categories?post=69807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.headout.com\/blog\/wp-json\/wp\/v2\/tags?post=69807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}