The 500-year-old madrasa Ben Youssef Madrasa in Marrakesh is one of the most important sights in Morocco.

Ben Youssef Madrasa: the old Koranic school

The Ben Youssef Madrasa is one of the country’s most impor­tant sights from an art-histor­i­cal perspec­tive. But even those who are not inter­ested in art or history should pay a visit to the Madrasa, as the inner court­yard with the water basin and the lavishly deco­rated build­ing are defi­nitely a feast for the eyes and leave last­ing impres­sions. Next to the Jardin Majorelle and the souks with the Jemaa el Fna, the Koranic school is the biggest attrac­tion in the red city.

You should allow at least one hour to visit the Madrasa, as it would be a shame to just look at the ornate deco­ra­tions in pass­ing. If you want to see every­thing in peace and quiet, you should be ready in the morn­ing at open­ing time if possible.

The outstand­ing feature of the Koranic school is the spacious inner court­yard with the water basin and the surround­ing colon­nade, deco­rated with tradi­tional craftsmanship.

One of the most important historical sights in Marrakesh is the Ben Youssef Madrasa Koranic school with its water basin in the courtyard.

If you are unsure whether you should visit the Bahia Palace or the Madrasa, I would recom­mend the Madrasa. From an art histor­i­cal point of view, the medersa is the more beau­ti­ful exam­ple of Islamic archi­tec­ture and the visit is also quicker, as the Madrasa is smaller but has the more beau­ti­ful over­all compo­si­tion to offer. The Bahia Palace, on the other hand, offers a lushly planted garden that rivals the architecture.

We present further histor­i­cal sights in our arti­cle 10 cultural high­lights.

Refer­ral links: The links marked with an aster­isk (*) are refer­ral links, also known as affil­i­ate links. This means that if you buy some­thing via such a link, we receive a small commis­sion. There is no addi­tional cost to you, but with your purchase you help us to continue creat­ing useful content for trav­el­ers. Enjoy our stories and “Shukran” for your support!

The Madrasa is located in the northern medina

The entrance is a little hidden in the alley­ways. However, the area surround­ing the Madrasa has also been spruced up in the course of reno­va­tion work in recent years. So if you come to an alley­way with wood panel­ing and neat-look­ing plas­ter, you’re on the right track.

From the Riad Selouane the Madrasa can be reached on foot in about 10 minutes.

Want to share or save this post?

You can hire a guide at the entrance to the Koran school. Unfor­tu­nately, the Moroc­can guides have little to tell, most of them have memo­rized the stan­dard phrases and have no in-depth knowl­edge of the art-histor­i­cal signif­i­cance of the Madrasa.

It is better to orga­nize a guided tour with a licensed guide in advance. Only expert guides who have been trained and have passed an exam are granted a license in Marrakesh.

You can book a visit with an expert and licensed guide here: Entrance and visit to the Madrasa with Mustapha Karraoui*.

If you would like to know more, you can take a guided city tour* which also includes a visit to the Madrasa. There are usually more inter­est­ing things to learn on these tours than with the local guides.

Due to the trans­la­tion from Arabic, the Ben Youssef Madrasa is also known as the Ben Youssef Medersa or Madrassa.

History of the Ben Youssef Madrasa

The Almoravid dynasty, whose origins lie with the Berbers in the High Atlas, ruled a huge empire in the 12th century that stretched from Spain via Alge­ria to present-day Sene­gal. In 1062, the Almoravids founded Marrakesh, which they made their capital.

Ali Ben Youssef, the second Almoravid sultan, built the Ben Youssef Mosque, which was completed in 1120. He also had the city wall built, which has surrounded the city unchanged since 1122.

In 1147, the Almo­hads conquered the city, destroyed it almost completely and rebuilt it as their capital. 

In 1269, the Merinid dynasty conquered Marrakesh and put an end to Almo­had rule. 

The Merinids wanted to restore the empire to its former great­ness and moved the capi­tal from Marrakesh to Fez. To under­pin their rule, they had Koranic schools built all over the coun­try. However, the Merinids were put under pres­sure by the Euro­peans in the course of the recon­quest of Spain and even­tu­ally lost their terri­to­ries in Europe.

Sultan Abu al-Hasan, esti­mated to have been born in 1299, was the 7th Merinid Sultan.

He was also known as the “Black Sultan” due to his dark skin color, as his mother was an Ethiopian slave.

He was known for his artis­tic sense and began build­ing the madrasa next to the exist­ing Ben Youssef Mosque, which gave the school its name, around 1350.

View of the inner courtyard of the Ben Youssef Madrasa Koranic school with the water basin.

However, noth­ing remains of this early build­ing, as the Koranic school was completely rebuilt in the middle of the 16th century.

The Saadian dynasty, which could trace its origins back to the Prophet Muham­mad, was less reliant on Koranic schools to empha­size the legit­i­macy of its rule. Never­the­less, they built a new madrasa in Marrakesh, which they made their capi­tal, to replace the exist­ing one. 

The Saadian Sultan Abdal­lah al-Ghalib, born in 1517, prob­a­bly began rebuild­ing the Madrasa shortly after coming to power. Accord­ing to an inscrip­tion, the work was completed in 1565. Completed in Merini­d­ian style, the Ben Youssef Madrasa was the largest Koranic school in the Maghreb and could accom­mo­date up to 800 students. 

The Madrasa was in oper­a­tion until the 18th century and was finally closed and abandoned. 

In the 19th century, it was reno­vated by the Alaouite Sultan Moulay Hassan I and reopened as an Islamic school. The Koranic school was then in oper­a­tion until 1960, when it was opened to tourism as a national monument.

In 2017, the Ben Youssef Madrasa was taken over by the Moroc­can state and reopened to the public in 2022 after four years of restora­tion.

Art historical significance

The Ben Youssef Madrasa is one of Morocco’s most impor­tant monu­ments. The excep­tion­ally well-preserved build­ing impresses with its rich orna­men­ta­tion, artis­tic tile mosaics and ornate carvings.

Islamic stucco decorations and tile mosaics in the courtyard of the Ben Youssef Madrasa Marrakesh.

The style is based on the Merinid Madrasas, although the Madrasa was built during the Saadian period.

Espe­cially in compar­i­son to the Moor­ish build­ings in Spain, the Madrasa is largely preserved in its orig­i­nal state and offers a compre­hen­sive over­all picture of Islamic architecture.

The fili­gree work testi­fies to the incred­i­ble dexter­ity of Moroc­can craftsmen.

The architecture

The floor plan of the Madrasa is approx. 40 x 43 m, which results in a floor area of approx. 1700 square meters.

The rooms are grouped around a spacious inner court­yard with a shal­low water basin. The bedrooms adjoin on both sides, but do not have direct access to the inner courtyard.

The bedrooms are grouped around a total of 6 inner court­yards that provide light. The bedrooms are differ­ent sizes.

Floor plan Ben Youssef Madrasa Marrakesh.
First floor plan

One end consists of the entrance and a stair­case, the other end houses the prayer room. The entire system is arranged symmetrically.

The inner court­yard is richly deco­rated with tiles, stucco and wood carv­ings, while the bedrooms are plain and simple. The prayer room is deco­rated with stucco and marble and has a huge wooden dome.

The entrance

Moroccan decoration on the metal-clad entrance door of the Ben Youssef Madrasa, the old Koranic school in Marrakesh.

You enter the Madrasa through an impres­sive bronze gate in a quiet alley­way. The gate has gigan­tic dimen­sions. It’s all too easy to over­look it when there’s a lot going on at the entrance.

The massive gate is deco­rated with geomet­ric patterns and finely chis­eled ornaments. 

The inscrip­tion above the gate praises Sultan Abdal­lah as the builder of the Madrasa.

After paying the entrance fee, you walk through a corri­dor to the central stair­case. This long corri­dor is an impor­tant element in Islamic archi­tec­ture, as it is intended to humble the visi­tor and then create an aha expe­ri­ence when they reach the actual building.

And it works: The corri­dor ends in a room with stairs and a large gate into the inner court­yard — and the sight of the inner court­yard is truly an aha experience!

The inner courtyard

The lavishly deco­rated walls take your breath away at first sight. You really do feel like you’ve been trans­ported back in time here. The hustle and bustle of the medina has been left out and imme­di­ately forgot­ten, and even today the inner court­yard radi­ates an almost medi­ta­tive calm.

medersa ben youssef marrakesch 01

Two small gargoyles bubble into the approx. 3x7 m water basin, which is lined with color­ful Moroc­can tiles. The inner court­yard is tiled with white marble from the High Atlas.

The lower part of the walls is covered with tiled mosaics, while almost every free surface above is deco­rated with ornate stucco work. The finish­ing touch is provided by magnif­i­cent wood carv­ings that extend up to the roof beams.

A portico provides cool shade. The Arabic inscrip­tions show verses from the Koran.

The prayer room

On the south­ern side is the prayer room, which cannot be entered.

The prayer hall of the Ben Youssef Madrasa Koranic school in Marrakesh.

Large columns divide the room into three parts.

A mighty cedar dome spans the main room, with an impres­sive bronze chan­de­lier hang­ing below.

There are 24 windows with color­ful glass mosaics under the dome, which conjure up color­ful spots in the prayer hall depend­ing on the posi­tion of the sun.

In the middle of the room is an ornate marble basin that served as a wash­basin. Made in Cordoba around the year 1000, it came to Morocco after the loss of the Span­ish terri­to­ries in the 13th century and has been used in the Ben Youssef Madrasa ever since. 

After the end of the teach­ing activ­ity, it stood for many years in the Dar Si Said Museum and was only returned to the Koranic school in the course of the last reno­va­tion work.

The niche behind the basin, called the mihrab, indi­cates the direc­tion of prayer.

It is deco­rated with partic­u­larly beau­ti­ful stucco.

Koranic suras adorn the wall above the niche.

Marble basin in the prayer room of the Ben Youssef Madrasa in Marrakesh.

The marble of the white columns comes from Italy. Carrara marble was already world-famous back then and was sold all over the world.

Looking for a hotel in Marrakesh?

The best loca­tion in the medina, break­fast included, an oasis of peace in the middle of the souks: the Riad Selouane is the ideal address for your city trip!

Riad Selouane Marrakesh: View into the courtyard and over the roofs to the Ben Youssef Mosque

The arts and crafts

The whole build­ing is far too elab­o­rately deco­rated to take in every­thing at a glance. Take your time and admire the artis­tic mosaics, stucco reliefs and carv­ings. Such a master­piece of Moor­ish archi­tec­ture is not often seen!

What artists the crafts­men of the time must have been to carve the tiles, model the plas­ter or deco­rate the beams with such preci­sion and finesse. And all with­out modern aids! 

After all, you have to bear in mind that most of the deco­ra­tions you can admire here are almost 500 years old!

Islamic stucco decorations in the Ben Youssef Madrasa.
Islamic stucco decorations in the Ben Youssef Madrasa.
Islamic stucco decorations in the Ben Youssef Madrasa.

The finely crafted stucco reliefs are carved into the damp plas­ter with small knives. If you look closely, you can see the bound­ary of the so-called day’s work — the area that the artist completed one day before apply­ing new plas­ter the next day.

The stucco has a slightly pink color, as it comes from the Asni area near Marrakesh. Marble powder was mixed in to make it whiter.

Mosaic made of Moroccan Zellige tiles in the Ben Youssef Koranic school in Marrakesh.
Mosaic made of Moroccan Zellige tiles in the Ben Youssef Koranic school in Marrakesh.

Even today, Moroc­can crafts­men are still masters of their trade and I am always amazed at the dexter­ity with which tradi­tional work­ing meth­ods are still used today.

The glazed tiles are called Zellige and are hewn into the right shape by hand with a small hammer. The patterns are tradi­tional and are still produced in exactly the same way today. The crafts­men know exactly what shape the tiles need to be in order to repro­duce even the most compli­cated patterns after­wards and it is incred­i­ble how precisely they can carve the tiles.

Painted and carved ceiling. Ben Youssef Madrasa Marrakesh.
Painted roof beams in the wooden ceiling of the Ben Youssef Madrasa.

The ceil­ings and ceil­ing beams are deco­rated with a mixture of relief and paint­ing. Although they are installed at a height of many meters, there is no lack of detail. You almost wish you had binoc­u­lars so you could see every­thing in detail!

Carved and painted roof beams in the Ben Youssef Madrasa are an impressive example of Moroccan craftsmanship.

The wood used for the carv­ings and roof beams comes from the cedars of the Middle Atlas.

If you look up in the inner court­yard, you can discover beau­ti­ful Islamic vaults in the corners of the courtyard.

These muqar­nas, or stalac­tite vaults, are typi­cal of Islamic archi­tec­ture and are compli­cated to construct.

The adjoining rooms

As richly deco­rated as the inner court­yard of the Madrasa is, the adjoin­ing rooms are just as sparse. The small cells in which the Koran students were housed seem almost ascetic.

The students’ accommodation

The side wings house the rooms for the pupils on both the first floor and the upper floor. Long corri­dors lead to small atri­ums around which small, barren cells are arranged.

View of the corridor inside the Ben Youssef Madrasa.
Atrium in the old Koranic school in Marrakesh: Ben Youssef Madrasa.

There are 130 such cells in total. Some of the cells are two-story, some have windows and all were appar­ently occu­pied by several students.

The Ben Youssef Madrasa in Marrakesh is an interesting Koranic school and one of the city's most important sights. View into a cell where students were housed.

The cells are func­tional, small and offer little space for furnish­ings. There can’t have been much more than sleep­ing accom­mo­da­tion in the cells.

Some of the cells offer a beau­ti­ful view of the inner courtyard.

Some of the more spacious cells were appar­ently reserved for teachers.

The washroom

On the first floor of the east­ern wing is the old bathing facil­ity, now appro­pri­ately used as a toilet.

Even if you don’t have to go to the Quiet Room, you should take a look inside.

4 beau­ti­ful columns surround a water basin in the middle and you can easily imag­ine how the students used to wash them­selves here.

The wash room in the Ben Youssef Madrasa.

The Koranic school

The Madrasa is not the actual school, but only the dormi­tory of the Koranic school. Students who were not from Marrakesh could stay here to be taught in the nearby Ben Youssef Mosque.

The mosques were the actual places of learn­ing and the sultan’s palaces were also used for teaching.

medersa ben youssef marrakesch 05

Islamic theol­ogy and Islamic jurispru­dence were taught. Over 800 students are said to have stud­ied at the Koran school.

A student of the Koranic school was referred to as taleb. Liter­ally the seeker, this term refers to a student of reli­gious studies.

The Madrasa mainly took in boys from the areas of the High Atlas and the regions south of it. Most of them had already memo­rized the Koran from the age of 7. Then there was the Arabic language, because the people in the moun­tain regions are Berber and there­fore do not speak Arabic, but Berber.

At the age of 10, they had completed their basic train­ing in their villages. Those who wanted to continue learn­ing were taught in special schools in the larger towns. The train­ing included gram­mar, liter­a­ture, the basics of law and Islamic reli­gious studies.

Fancy a city tour in Marrakesh?

Our part­ner GetYourGuide* offers guided city tours and food tours with friendly local guides who will show you the hidden corners of the medina.

Spice store in Marrakesh

Only at the age of 20 could the best students trans­fer to a pres­ti­gious Koranic school such as the Ben Youssef Madrasa and follow their school educa­tion with a degree. This required a recom­men­da­tion from their teacher and they had to pass an entrance test.

The costs for the train­ing were borne by the Sultan. They cooked, ate and slept in the rooms.

The lessons took place in the mosque next door. Some courses also took place in the Madrasa. The students were also able to attend classes in the other mosques in the city. Some of the teach­ers were very famous and students came from far and wide to attend their lessons.

In the first centuries of the Koran schools, reli­gion was taught above all. Later, the Arabic language and subjects such as philos­o­phy, medi­cine, math­e­mat­ics, astron­omy, geog­ra­phy, physics and chem­istry were added.

Some students improved their finan­cial situ­a­tion by copy­ing old texts or text­books. The libraries were located at the mosques, not in the Madrasa.

The train­ing relied heav­ily on memo­riza­tion and listen­ing, rather than practicing.

The train­ing was completed by a pilgrim­age to the holy cities in the coun­tries of the Middle East.

olive twig light brown

Even today, the Madrasa exudes an air of calm that makes it easy to imag­ine students sitting in the shade of the pillars, review­ing their lessons or chat­ting with their friends.

In any case, I find it fasci­nat­ing how much value was placed on a pleas­ant spatial atmos­phere in earlier times, which supported the reason for the building’s exis­tence so excel­lently and has survived over the centuries.

The Ben Youssef Madrasa is a real orien­tal gem

Ben Youssef Madrasa Info

Rue Assouel
Marrakech 40000, Maroc
www.medersabenyoussef.ma

Visit to the Ben Youssef Madrasa with a licensed guide*

The Madrasa is open daily from 9 — 19 hrs. The entrance fee is 50 dirhams.

Looking for more information about Marrakesh?

Visit our travel guide to learn more about the sights of Marrakesh and Morocco!

Koutoubia Mosque in Marrakesh
Scroll to Top