Gates of the Medina of Marrakech: Complete 2026 Guide

The gates of the Medina of Marrakech are much more than simple entrances. In fact, these stone structures tell almost a thousand years of history. They also show the power of the dynasties that ruled the city. At the same time, they work as useful landmarks for every visitor. If you want to understand Marrakech beyond Jemaa el-Fna square, starting with these gates is a smart choice.

This complete guide was written by the local team at Favorites Morocco Tours. Here you will find clear and updated information about the gates of the Marrakech Medina in 2026. You will also learn the story of Bab Agnaou, how to visit the main gates, and several practical tips. All details were checked on the ground in September 2026.

Quick Answer: How Many Gates Does the Medina Have?

The Medina of Marrakech is surrounded by about 19 kilometres of walls. In total there are 19 historic gates. However, only about nine or ten have real interest for visitors. The most famous and photographed one is Bab Agnaou, the old ceremonial entrance to the royal Kasbah.

Key Facts at a Glance (2026)

Here are the most important facts in a clear table:

Question Short Answer
Number of historic gates 19 (about 9-10 of tourist interest)
Most famous gate Bab Agnaou (12th century)
Length of the walls About 19 km
Main material Rammed earth and stone at Bab Agnaou
Entry Free and open 24 hours
Best time to visit Sunrise or sunset
Distance from Jemaa el-Fna 15-20 minutes walk to Bab Agnaou
UNESCO status Yes, since 1985

History of the Gates of Marrakech

The story of these gates starts at the end of the 11th century. At that time the Almoravids founded the city and built the first walls. These walls were made of rammed earth around 1126-1127. In those days the gates had a practical role. They controlled access and helped defend the city.

Later, in 1147, the Almohads conquered Marrakech. They entered through Bab Aghmat. Instead of destroying the walls, they expanded them and added new gates. It was during this period that they built the famous Bab Agnaou, at the end of the 12th century.

In the following centuries other dynasties also changed the gates. Some were opened, others were closed, and several were adapted for modern traffic in the 20th century. Today they form part of the UNESCO World Heritage site protected since 1985.

If you want to learn more about the history of the city, we recommend our complete Marrakech travel guide.

Bab Agnaou: The Most Important Gate

Bab Agnaou is the most impressive gate in the whole Medina. It was built between 1188 and 1190 during the reign of the Almohad caliph Ya’qub al-Mansur. At that time it served as the official entrance to the royal Kasbah. However, it did not have a main military role. Its true purpose was ceremonial. Ambassadors and important processions passed through it.

Origin of the Name

The name “Agnaou” has several explanations. Some link it to a Berber word meaning “mute” or “deaf”. Others believe it refers to the peoples from south of the Sahara. It has also been called “the gate of the ram without horns” because it originally had two towers that no longer exist. In the past it was also known as Bab al-Qasr (Palace Gate).

Architecture and Decoration

Unlike most of the other gates, Bab Agnaou is made of stone. This stone came from the quarries of Gueliz and was originally blue-grey. Over time, and with the desert wind full of sand, it has taken on a more reddish colour.

The façade shows four arches placed one above the other. These arches are decorated with lines and plant motifs. In addition, the whole structure is framed by inscriptions from the Quran written in old calligraphy. At the top you can read a message of welcome.

In the past the gate had two side towers and an angled passage. Those towers disappeared centuries ago. Today the arch is a little smaller than the original one. A curious detail is that storks often nest on the top of the gate.

How to Visit Bab Agnaou

  • Opening hours: open 24 hours a day.
  • Price: completely free.
  • Location: in the south of the Medina, near the Saadian Tombs.
  • Recommended time: between 30 and 60 minutes.
  • Best moment: early morning or late afternoon.

From Jemaa el-Fna square you can walk there in about 15 or 20 minutes. You can also take a petit taxi to the Kasbah area. Be careful with traffic when you take photos, because the gate stands in a busy spot.

Other Important Gates of the Medina

Although Bab Agnaou is the most famous, there are other gates worth visiting. Below you will find the most interesting ones.

Bab El Khemis

This gate stands in the north of the Medina. Its name means “Thursday Gate” because a market used to take place there on that day. Today it leads to the Souk El Khemis, a very authentic second-hand market. It is a good choice if you want to see local life away from the most touristy areas.

Bab Debbagh

Also known as the Tanners’ Gate. It is located in the east of the Medina and gives access to the tanneries quarter. The inner passage is quite complex, with several turns. The smell of the tanneries is strong, but it is part of the real Marrakech experience.

Bab Aylan

This gate is also in the east, a little further south. It takes its name from an old Berber tribe. It receives fewer visitors than other gates, so it is ideal for quiet photos.

Bab Aghmat

This gate has great historical value. The Almohads entered the city through it in 1147. Although it looks quieter today, its symbolic importance remains high.

Bab Er-Robb

It stands right next to Bab Agnaou. In the past it controlled the entry of fermented drinks. Its name refers to a type of fruit syrup. It is one of the gates with a more unusual shape.

Bab El Jdid

Known as the New Gate, it is one of the most used today. It is located near La Mamounia hotel and the Hivernage district. It is very practical if you stay in the modern part of the city.

Bab Doukkala

This gate is in the northwest, close to the bus station. It has two square towers and still keeps much of its original structure. It gives access to the northern part of the Medina.

In addition to these, there are other gates such as Bab Ahmar, Bab El Makhzen or Bab Ighli. Each one has its own story and forms part of the daily landscape of the city.

How to Plan Your Visit

You do not need to see all 19 gates. With a half-day route you can visit the most important ones and combine them with other monuments.

Recommended Half-Day Itinerary

  1. Start at Bab Doukkala or Bab El Khemis in the north.
  2. Then head east to see Bab Debbagh and Bab Aylan.
  3. Continue south until you reach Bab Aghmat.
  4. Visit Bab Agnaou and Bab Er-Robb.
  5. Take the chance to see the Saadian Tombs and the El Badi Palace.
  6. Finish near the Kasbah Mosque and return towards Jemaa el-Fna.

If you prefer not to get lost and learn more about the history, you can book one of our private Medina tours. They include the main gates together with the souks and other monuments.

Practical Tips for 2026

  • Wear comfortable shoes because you will walk a lot.
  • The best seasons are spring and autumn. In summer it is better to visit early or at sunset.
  • Sunset gives the best light for photographing Bab Agnaou.
  • The area is safe, but it is wise to watch your belongings in crowded places.
  • Dress respectfully, especially near mosques.
  • Petit taxis are a good option to move between distant gates.
  • Always carry water, as there is little shade next to the walls.

What to See Near the Main Gates

The gates are not only destinations. They are also the entrance to some of the most interesting places in Marrakech.

  • From Bab Agnaou you can easily reach the Saadian Tombs, the El Badi Palace and the Kasbah Mosque.
  • From Bab El Khemis you access the second-hand market and less touristy areas.
  • From Bab Debbagh you arrive at the tanneries quarter.
  • From Bab Doukkala it is easy to enter the heart of the souks and reach Jemaa el-Fna.

If you want to combine the visit with good food, check our Marrakech restaurant guide.

The Gates in Daily Life in Marrakech

Today the gates are still important reference points. Local people use them to give directions. Taxi drivers know them all. In addition, many sellers gather near the busiest ones.

Every evening, when the sun turns the walls red, these gates become perfect places to walk or take photos. During Ramadan and religious festivals the atmosphere changes. Mornings are quieter and evenings are more lively.

Crossing one of these gates is, in a way, stepping across a bridge between the present and almost a thousand years of history.

Frequently Asked Questions

How many gates does the Medina have?

There are 19 historic gates. However, only about nine or ten still hold special interest for visitors.

Do you need to pay to see them?

No. All the gates are free and open all day long.

Which is the most beautiful gate?

Most people agree that Bab Agnaou is the most beautiful. It is the one that best keeps its original decoration.

Can you walk on the walls?

In some sections there are access points, but they are not always open. The most common way is to admire them from below.

Is it worth visiting only Bab Agnaou?

Yes, especially if you have little time. However, combining it with the Saadian Tombs and a walk through the Kasbah makes the experience much better.

Are there guided tours of the gates?

Most Medina tours include at least Bab Agnaou. At Favorites Morocco Tours we can also organise a route focused on the gates and the history of the walls.

Conclusion

The gates of the Medina of Marrakech are not just old buildings. In fact, they form an essential part of the city’s identity. History has passed through them for almost a thousand years. From the Almohad conquest to the thousands of travellers who cross them today, these structures still serve their purpose.

If you are planning your trip to Marrakech in 2026, do not just walk past them. Stop for a moment, look at the details, and let these gates tell you their story. And if you want to discover them with someone who lives them every day, the team at Favorites Morocco Tours will be happy to join you.

Ready to cross the gates of Marrakech with us? Write to us and we will prepare the perfect route together.

Guide updated in September 2026 by the local team of Favorites Morocco Tours.

Scroll to Top