March 20, 2026 Travel

El Badi Palace: The Rise, Ruin, and Legacy of Marrakech’s Incomparable Palace

Discover the story of El Badi Palace, from its rise after a historic battle to its ruins today, plus what to see and how to plan your visit.

El Badi Palace courtyard with reflecting pools, sunken gardens, and Atlas Mountains in the background

El Badi Palace owes its existence to a single day of warfare. On August 4th, 1578, three kings rode into battle near the Moroccan town of Ksar el-Kebir, and none of them survived. Sultan Ahmad al-Mansur inherited the Saadian throne from his fallen brother and used Portuguese ransoms to fund what guests at the opening ceremony reportedly called the eighth wonder of the world.

The name “el-Badi” translates to “The Incomparable,” borrowed from one of the 99 names of God in Islam. That was not a modest choice, and El Badi Palace was never built to be modest either. Today, the marble, gold, and cedar ceilings are gone, stripped and scattered across Morocco over the course of a century. What remains is a vast skeleton of sunken gardens, towering walls, and nesting storks in the heart of Marrakech’s Kasbah district.

In this guide, we cover the full story behind the palace, from the battle that funded it through the decades of construction and eventual dismantling, all the way to what you can see and do here today. Whether you are planning a day trip from Rabat or building a Marrakech itinerary from scratch, this is one site that earns its place on the list.

Origins and Rise of El Badi Palace

To understand what El Badi Palace once was, it helps to start with the man who built it and the war that made it possible. Both stories are tied to a single afternoon in northern Morocco that reshaped the country’s political future and filled its treasury almost overnight.

The Vision of Sultan Ahmad al-Mansur

Ahmad al-Mansur was not supposed to become sultan. He and his brother Abd al-Malik spent 17 years in exile across the Ottoman Empire after a brutal family power struggle forced them out of Morocco. That changed in 1578, when Abd al-Malik died during the Battle of the Three Kings, and Ahmad stepped into the role as the last man standing. He took the title “al-Mansur,” meaning the Victorious, and later earned a second nickname: “al-Dhahabi,” the Golden One.

Within months of taking power, al-Mansur began planning El Badi Palace as a statement of what Morocco had become under his rule. He wanted something that could rival the Alhambra in Spain, a complex grand enough to impress European ambassadors and Ottoman envoys alike. The name he chose, “el-Badi” or “The Incomparable,” was borrowed from one of the 99 names of God in Islam. According to historical accounts, guests at the palace opening described it as the eighth wonder of the world.

Construction and Funding After the Battle of the Three Kings

The Battle of the Three Kings earned its name because all three rulers involved died on the same day. For Portugal, the defeat was catastrophic. Over 8,000 soldiers were killed, another 15,000 captured, and the ransom demanded for the surviving nobility nearly bankrupted the country. That ransom money went directly into al-Mansur’s treasury, and a significant portion of it funded the construction of El Badi Palace.

Work on the palace began in late 1578 and continued for roughly 15 years. Al-Mansur did not rely on Portuguese ransoms alone. In 1591, he conquered the Songhai Empire in West Africa, seizing control of trans-Saharan trade routes that brought gold, ivory, and slaves to Marrakech on a yearly basis. Those combined revenues turned El Badi into one of the most expensive construction projects in the Islamic world at the time, with master craftsmen employed from across Morocco and beyond.

Architectural Splendor and Artistic Details

What made El Badi Palace remarkable was not just its size but the ambition behind every design decision. Al-Mansur drew from Moorish architectural traditions, particularly the Alhambra in Granada, and then scaled everything up to a degree that no palace in North Africa had attempted before.

Rammed earth walls and orange groves inside El Badi Palace Marrakech

Design Influences and Imported Materials

The architectural DNA of the palace connects directly to Islamic Spain. The Alhambra’s Court of the Lions served as the clearest blueprint, and Moorish elements like symmetrical geometry, muqarnas arches, and zellij tilework defined the visual language of the entire complex. Al-Mansur, however, was not interested in imitation. Every element was executed on a larger and more elaborate scale than its Andalusian predecessor.

Sourcing materials was a project in itself. Italian Carrara marble clad the red clay walls, onyx arrived from India, and gold leaf came through trans-Saharan trade routes. According to some accounts, al-Mansur traded Moroccan sugar kilo-for-kilo in exchange for Italian marble. Skilled craftsmen spent years applying intricate stucco carvings, gilded muqarnas ceilings, and calligraphic inscriptions, while silver animal sculptures decorated the fountains inside the main pavilion.

Layout: Grand Courtyard, Pavilions, and Reflecting Pools

At the centre of El Badi Palace sat a rectangular courtyard measuring 135 by 110 metres, one of the largest enclosed palace courtyards in the Islamic world at the time. A central reflecting pool stretched 90 metres in length and roughly 20 metres in width, flanked by four sunken gardens that were only rediscovered during modern excavations. The whole arrangement followed the traditional riad garden concept, just at a scale that turned a domestic design principle into something monumental.

Central reflecting pool at El Badi Palace with pavilion ruins and palm tree

Four pavilions anchored the courtyard from each side. The western Qubba al-Khamsiniya served as the main throne and reception hall, named either for its 50 columns or its surface area of 50 cubits. Opposite it stood the Crystal Pavilion, reserved for the sultan’s private use, while the Green Pavilion to the north likely housed foreign ambassadors. In total, El Badi Palace reportedly contained over 360 rooms, along with underground passages connecting kitchens, hammams, and storage areas. Every detail reinforced the same message: Morocco, under al-Mansur, answered to no one.

Decline, Legacy, and Preservation

El Badi Palace stood in its full glory for barely 25 years. What took over a decade to build began falling apart almost immediately after the man who built it died, and within a century, the palace was stripped down to bare walls. That story, though, is just as worth telling as the construction itself.

Towering rammed earth wall of El Badi Palace showing original scaffolding holes

Dismantling and Transfer to Meknes

Sultan Ahmad al-Mansur died in 1603, and his death triggered a civil war among his sons that lasted nearly 25 years. During that period, El Badi Palace slipped into neglect as Marrakech lost its political relevance. The Alaouite dynasty eventually took power, and in 1672, Moulay Ismail became sultan with a very specific ambition: to build a new imperial capital in Meknes that could rival Versailles.

To fund that vision, Moulay Ismail turned to what was already built. The stripping of this site likely began well before the formal demolition order recorded in 1707, and the full process took over a decade. Marble columns, gold fixtures, and decorative elements were removed piece by piece and transported over 300 kilometres north to Meknes, where fragments can still be traced in the Mausoleum of Moulay Ismail and the Zawiya of Moulay Idris II in Fes.

As it turned out, al-Mansur’s court jester had called it at the opening ceremony: asked what he thought of the finished palace, he reportedly replied that it would make a magnificent ruin.

The Ruins Today and Ongoing Preservation

For centuries after the dismantling, El Badi Palace sat abandoned. The courtyards became grazing land for animals, and owls took over the empty chambers. It was not until archaeological excavations in 1953 that the full layout of the palace was properly mapped, including the sunken gardens that had been buried for generations.

Today, El Badi operates as a cultural heritage site within Marrakech’s medina, which itself holds UNESCO World Heritage status. New exhibition spaces opened in 2018, and the complex also houses the 12th-century Koutoubia minbar, a cedar wood pulpit crafted by artisans in Cordoba in 1137 and considered one of the finest surviving examples of Islamic woodwork. The September 2023 earthquake that struck southern Morocco did cause structural damage to El Badi Palace, particularly cracks in the exhibition room walls, but the site reopened to visitors within a month.

El Badi Palace pavilion entrance with empty basin in the foreground

The Influence of El Badi on Moroccan Heritage

Even in ruin, this site holds a specific place in Morocco’s cultural identity. It represents the peak of the Saadian dynasty, a period when Marrakech functioned as the capital of an empire that stretched from the Mediterranean to the Niger River. That era shaped Moroccan architecture, diplomacy, and trade in ways that are still visible across the country.

The palace also serves as more than a static monument. For years, it has hosted the National Festival of Popular Arts, filling the ancient courtyard with traditional music, dance, and live performances. The Marrakech du Rire festival, organised by French-Moroccan comedian Jamel Debbouze, has also used El Badi Palace as its stage. That combination of historical weight and living cultural use is part of what keeps this site relevant, not just as a ruin to photograph but as an active part of Marrakech’s identity.

Visiting El Badi Palace

Knowing the history of the palace is one thing, but walking through it is a completely different experience. The scale only makes sense in person, when you are standing in the middle of a courtyard that once held 360 rooms and all you see are walls, sky, and storks. Here is what to expect and how to plan your visit.

What to See: Courtyards, Gardens, and Storks

The main courtyard is the centrepiece, and it hits you the moment you walk in. Orange trees now fill the spaces where sunken gardens once held exotic plants, and the central reflecting pool stretches out ahead of you, dry but still impressive in scale. Take your time here because the size of this space is the most direct way to grasp what El Badi Palace actually was.

Underground chambers of El Badi Palace with preserved zellij tilework and visitor for scale

From the courtyard, head to the underground chambers. These passages once connected kitchens, hammams, storage rooms, and even a prison. Today, they house exhibitions, including a photographic history of the Kasbah area from the 1920s to 1950s. The real highlight, though, is the 12th-century Koutoubia minbar, a cedar wood pulpit crafted in Cordoba in 1137, with gold and silver calligraphy still intact.

And then there are the storks. Dozens of white storks nest on top of the palace walls, particularly during the spring and summer breeding season, and the constant clicking of their beaks is something you will hear long before you notice them.

Practical Information for Visitors

El Badi Palace is open daily from 9:00 AM to 5:00 PM. The entrance fee is 100 MAD for foreign visitors, with a small additional charge to see the Koutoubia minbar. Tickets can be purchased at the entrance, and advance booking is not required, though morning visits help you avoid queues and the midday heat.

A few things worth keeping in mind:

  • Wear comfortable shoes because the terrain is uneven and involves steps
  • Carry water, especially in warmer months, as there is very little shade in the open courtyard
  • Allow at least 90 minutes to see everything properly, including the terraces and underground areas
  • Hiring a local guide at the entrance is worth considering since most signage is in French and Arabic only

Nearby Attractions and Suggested Itineraries

One of the advantages of visiting El Badi is its location. It sits in Marrakech’s Kasbah district, within easy walking distance of several other major sites. The Saadian Tombs are just 300 metres away, Bahia Palace is roughly a 10-minute walk, and Jemaa el-Fna, the main square, is about 15 minutes on foot.

A practical half-day itinerary could start at El Badi Palace in the morning, continue to the Saadian Tombs next door, and then walk north to Bahia Palace before ending at Jemaa el-Fna for lunch. That sequence keeps things compact and avoids backtracking. If you have a full day, the Koutoubia Mosque and the Majorelle Garden are both reachable by a short taxi ride.

Koutoubia Mosque minaret illuminated at dusk in Marrakech

Exploring Marrakech as a Day Trip From Rabat

If you are staying in Rabat, a day trip to Marrakech is more than doable. Direct trains run hourly from Rabat Ville station and the journey takes around three and a half hours each way. An early departure gets you to Marrakech by mid-morning, leaving a solid six to seven hours to explore before catching an evening train back.

Rabat’s central position in Morocco makes it an ideal base for this kind of side trip. You can cover El Badi Palace, the Saadian Tombs, and Bahia Palace in a single afternoon, with time to spare for the medina. For those looking for a comfortable base in Rabat between excursions, STORY Rabat offers a well-located starting point with easy access to the train station and the city’s own historic sites, including the Hassan Tower and the Kasbah of the Udayas.

Is El Badi Palace Worth the Visit?

El Badi Palace is not the kind of site that dazzles you with preserved interiors or polished exhibits. What it offers instead is scale, context, and a story that most visitors do not expect when they walk through the entrance. Standing in a courtyard that once hosted European diplomats and Songhai gold caravans, surrounded by nothing but sun-baked walls and nesting storks, gives you a sense of Moroccan history that no museum display can replicate.

If you are building a Marrakech itinerary, this site pairs naturally with the Saadian Tombs and Bahia Palace for a half-day that covers three very different sides of the city’s past. It is also one of the quieter stops in a city that rarely slows down, which is worth something on its own. Come early, bring water, and give yourself enough time to explore what El Badi Palace has beneath the surface. This is one of those places where the less you rush, the more you take away.

El Badi Palace ruins reflected in the central water basin on a clear day

Related Articles

FAQ

How long should you spend at El Badi Palace?

Plan for at least 90 minutes to two hours. That gives you enough time to walk the main courtyard, explore the underground chambers, see the Koutoubia minbar exhibition, and climb the terraces for panoramic views of Marrakech. If you hire a guide at the entrance, add another 30 minutes since they cover details that the limited signage does not.

Is El Badi Palace the same as Bahia Palace?

No, they are two completely different sites. El Badi Palace dates back to 1578 and is largely in ruins, while Bahia Palace was built in the late 19th century and still has well-preserved interiors with painted ceilings and tiled courtyards. The two are about a 10-minute walk from each other, so visiting both in the same morning is easy to do.

What styles of Moroccan architecture can you see at El Badi Palace?

The palace draws heavily from Moorish and Andalusian design traditions, with the Alhambra in Granada as its clearest influence. Zellij tilework, muqarnas arches, and a symmetrical riad garden layout are all visible in the remaining structure. For anyone interested in Moroccan architecture, El Badi Palace offers a rare example of how Saadian-era builders blended local craft with imported materials on a monumental scale.

Can you visit El Badi Palace with children?

Yes, and it is actually one of the more child-friendly historical sites in Marrakech. The open courtyard gives kids room to move around, the underground tunnels add an element of exploration, and the storks nesting on the walls tend to hold their attention. Just keep in mind that the terrain is uneven in places and there is very little shade, so bring water and sun protection.

Are guided tours available at El Badi Palace?

Official guided tours are not always advertised, but local guides are usually available near the entrance. Hiring one is worth considering because much of the signage inside is in French and Arabic only, and without context, the ruins can feel like empty walls. Agree on a price before starting, and expect to pay around 100 to 150 MAD for a walkthrough that covers the palace history, the underground areas, and the minbar.

What is the best time of day to visit El Badi Palace?

Early morning, ideally right when the gates open at 9:00 AM. The courtyard is almost entirely exposed, so midday visits during warmer months can be intense. Morning light also happens to be the best for photography, especially from the elevated terraces where you get a clear view across the rooftops of the medina.

A professional image of a young woman standing with a confident smile, showcasing a welcoming atmosphere for guests looking to reach out for inquiries or bookings at STORY Rabat, a luxury hotel in Rabat, Morocco.