The 500-year-old Koranic school Ben Youssef Madrasa in Marrakech is one of the most important monuments in Morocco. View into the inner courtyard.

Ben Youssef Madrasa: the old Koranic school

The Ben Youssef Koran­ic school is one of the coun­try’s most impor­tant sights from an art-his­tor­i­cal per­spec­tive. But even those who are not inter­est­ed in art or his­to­ry should vis­it the Madrasa (= koran­ic school), as the inner court­yard with the water basin and the lav­ish­ly dec­o­rat­ed build­ing are def­i­nite­ly a feast for the eyes and leave last­ing impressions.

Want to save or share this post?

You should plan at least an hour to vis­it the Madrasa, as it would be a shame to just look at the artis­tic dec­o­ra­tions in pass­ing. If you want to see every­thing at your leisure, you should be ready in the morn­ing at open­ing time.

The most strik­ing fea­ture of the Koran school is the spa­cious inner court­yard with the water basin and the sur­round­ing colon­nade, dec­o­rat­ed with tra­di­tion­al craftmanship.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco.

If you are unsure whether you should vis­it the Bahia Palace or the Ben Youssef Madrasa, I would rec­om­mend the Madrasa. From an art-his­tor­i­cal point of view, the Madrasa is the more beau­ti­ful exam­ple of Islam­ic archi­tec­ture and the vis­it is also quick­er, as the Madrasa is small­er but has the more beau­ti­ful over­all com­po­si­tion to offer. The Bahia Palace, on the oth­er hand, has a lush gar­den that rivals the architecture.

Affil­i­ate 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 com­mis­sion. There are no addi­tion­al costs for you, but with your pur­chase you help us to con­tin­ue cre­at­ing use­ful con­tent for trav­el­ers. Enjoy our sto­ries and “Shukran” for your support!

The Ben Youssef Madrasa can be reached on foot from the Riad Selouane in around 10 minutes.

The entrance is a lit­tle hid­den in the alley­ways. How­ev­er, the area around the school has also been spruced up in the course of ren­o­va­tion work in recent years. So if you come to an alley­way with chic wood pan­el­ing and neat-look­ing plas­ter, you’re on the right track.

You can hire a guide at the entrance to the Madrasa. Unfor­tu­nate­ly, the Moroc­can guides have lit­tle to tell you, most of them have mem­o­rized the stan­dard phras­es and have no in-depth knowl­edge of the art-his­tor­i­cal sig­nif­i­cance of the Madrasa.

If you would like to know more, you can book a guid­ed city tour*, which also includes a vis­it to the Madrasa. There are usu­al­ly more inter­est­ing things to learn on these tours than with the local guides.

Due to the trans­la­tion from Ara­bic, the Ben Youssef Madrasa is also known as the Ben Youssef Med­er­sa or Madrassa.

History of the Koranic school Ben Youssef Madrasa

The Almoravid dynasty, whose ori­gins lie with the Berbers in the High Atlas, ruled a huge empire in the 12th cen­tu­ry that stretched from Spain via Alge­ria to present-day Sene­gal. In 1062, the Almoravids found­ed Mar­rakech, which they made their capital.

Ali Ben Youssef, the sec­ond Almoravid sul­tan, built the Ben Youssef Mosque, which was com­plet­ed in 1120. He also had the city wall built, which has sur­round­ed the city unchanged since 1122.

In 1147, the Almo­hads con­quered the city, destroyed it almost com­plete­ly and rebuilt it as their capital.

In 1269, the Merinid dynasty con­quered Mar­rakech and put an end to Almo­had rule.

The Merinids want­ed to restore the empire to its for­mer great­ness and moved the cap­i­tal from Mar­rakech to Fez. To sup­port their rule, they had Koran­ic schools built through­out the coun­try. How­ev­er, the Merinids were put under pres­sure by the Euro­peans dur­ing the recon­quest of Spain and even­tu­al­ly lost their ter­ri­to­ries in Europe.

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

He was also known as the “Black Sul­tan” due to his dark skin col­or, as his moth­er was an Ethiopi­an slave.

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

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. View of the water basin and the decorated walls in the courtyard.

How­ev­er, noth­ing remains of this ear­ly build­ing, as the Koran­ic school was com­plete­ly rebuilt in the mid­dle of the 16th century.

The Saa­di­an dynasty, which could trace its ori­gins back to the Prophet Muham­mad, was less reliant on Koran­ic schools to under­line the legit­i­ma­cy of its rule. Nev­er­the­less, they built a new Madrasa in Mar­rakech, which they made their cap­i­tal, to replace the exist­ing one.

The Saa­di­an Sul­tan Abdal­lah al-Ghal­ib, born in 1517, prob­a­bly began rebuild­ing the Madrasa short­ly after he came to pow­er. Accord­ing to an inscrip­tion, the work was com­plet­ed in 1565. The Ben Youssef Madrasa, com­plet­ed in Merini­d­i­an style, was the largest Koran­ic school in the Maghreb and could accom­mo­date up to 800 students.

The Madrasa was in oper­a­tion until the 18th cen­tu­ry and was final­ly closed and abandoned.

In the 19th cen­tu­ry, it was ren­o­vat­ed by the Alaouite Sul­tan Moulay Has­san I and reopened as an Islam­ic school. The Madrasa was then in oper­a­tion until 1960, when it was opened to tourism as a nation­al monument.

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

Art-historical significance

The Ben Youssef Madrasa is one of Moroc­co’s most impor­tant mon­u­ments. The excep­tion­al­ly well-pre­served Koran­ic school impress­es with its rich orna­men­ta­tion, artis­tic tile mosaics and ornate carvings.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Moroccan decoration artwork.

The style is based on the Merinid madrasas, although the school was built dur­ing the Saa­di­an period.

Espe­cial­ly in com­par­i­son to the Moor­ish build­ings in Spain, the build­ing is large­ly pre­served in its orig­i­nal state and offers a com­pre­hen­sive over­all pic­ture of Islam­ic architecture.

The fil­i­gree work tes­ti­fies to the incred­i­ble dex­ter­i­ty of Moroc­can craftsmen.

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 spa­cious inner court­yard with a shal­low water basin. The bed­rooms adjoin on both sides, but do not have direct access to the inner courtyard.

The bed­rooms are grouped around a total of 6 inner court­yards, which pro­vide light. The bed­rooms vary in size.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Plan.
ground floor

One end con­sists of the entrance and a stair­case, the oth­er end hous­es the prayer room. The entire com­plex is arranged symmetrically.

The inner court­yard is rich­ly dec­o­rat­ed with tiles, stuc­co and wood carv­ings, while the bed­rooms are plain and sim­ple. The prayer room is dec­o­rat­ed with stuc­co and mar­ble and has a huge wood­en dome.

Entrance

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Moroccan decor on the metal entrance door.

You enter the build­ing through an impres­sive bronze gate in a qui­et alley­way. The gate is gigan­tic in size. It is all too easy to over­look it when there is a lot going on at the entrance.

The mas­sive gate is dec­o­rat­ed with geo­met­ric pat­terns and fine­ly chis­eled ornaments. 

The inscrip­tion above the gate prais­es Sul­tan Abdal­lah as the builder of the Madrasa.

After pay­ing the entrance fee, you walk through a cor­ri­dor to the cen­tral stair­case. This long cor­ri­dor is an impor­tant ele­ment in Islam­ic archi­tec­ture, as it is intend­ed to hum­ble the vis­i­tor and then cre­ate an aha expe­ri­ence when they reach the actu­al building. 

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

The lav­ish­ly dec­o­rat­ed walls take your breath away at first sight. You tru­ly feel as if you have stepped back in time here. The hus­tle and bus­tle of the med­i­na has been left behind and imme­di­ate­ly for­got­ten; even today, the inner court­yard exudes an almost med­i­ta­tive calm.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Courtyard and water basin.

Two small water­spouts gush into the approx. 3x7 m water basin, which is lined with col­or­ful Moroc­can tiles. The inner court­yard is tiled with white mar­ble from the High Atlas.

The walls are cov­ered with tiled mosaics in the low­er area, while almost every free sur­face above is dec­o­rat­ed with ornate stuc­co work. The fin­ish­ing touch is pro­vid­ed by mag­nif­i­cent wood carv­ings that extend up to the roof beams.

A por­ti­co pro­vides cool shade. The Ara­bic inscrip­tions show vers­es from the Koran.

The prayer hall

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

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Prayer room.

Large pil­lars 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 it.

Under the dome are 24 win­dows with col­or­ful glass mosaics, which con­jure up col­or­ful spots in the prayer hall depend­ing on the posi­tion of the sun.

In the mid­dle of the room is an ornate mar­ble basin that was used as a wash­basin. Made in Cor­do­ba around the year 1000, it came to Moroc­co after the loss of the Span­ish ter­ri­to­ries in the 13th cen­tu­ry and has been used in the Ben Youssef Madrasa ever since.

After the end of teach­ing activ­i­ties, it stood for many years in the Dar Si Said Muse­um and was only returned to the Koran school dur­ing the last ren­o­va­tion work.

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

It is dec­o­rat­ed with par­tic­u­lar­ly beau­ti­ful stucco.

Koran­ic suras adorn the wall above the niche.

The mar­ble of the white columns comes from Italy. Car­rara mar­ble was already world-famous at that time and was sold all over the world.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Marble water basin and decorated nishrab in the prayer room.

Looking for a hotel?

An unfor­get­table stay in Mar­rakech — our authen­tic Riad Selouane in the Med­i­na offers every­thing you could wish for.

Riad Selouane Marrakech: courtyard with palmtree

Craftmanship

The entire build­ing is far too lav­ish­ly dec­o­rat­ed to take in every­thing at a glance. Take your time and admire the artis­tic mosaics, stuc­co reliefs and carv­ings. It is not often that you get to see such a mas­ter­piece of Moor­ish architecture!

What artists the crafts­men of the time must have been to carve the tiles, mod­el the plas­ter or dec­o­rate the beams with such pre­ci­sion and finesse. And all this with­out mod­ern tools!

After all, you have to bear in mind that most of the dec­o­ra­tions on dis­play here are almost 500 years old!

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Plaster work detail.
The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Plaster work detail.
The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Plaster work detail.

The fine­ly craft­ed stuc­co reliefs are carved into the damp plas­ter with small knives. If you look close­ly, you can see the bor­der of the so-called day’s work — this is the area that the artist com­plet­ed one day before apply­ing new plas­ter the next day.

The stuc­co has a slight­ly pink col­or, as it comes from the Asni area near Mar­rakech. Mar­ble pow­der was mixed in to make it whiter.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Tesselated zellige tiles mosaic.
The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Tesselated zellige tiles mosaic.

Even today, Moroc­can crafts­men are still mas­ters of their trade and I am always amazed at the dex­ter­i­ty with which tra­di­tion­al work­ing meth­ods are still used today.

The glazed tiles are called Zel­lige and are hewn into the right shape by hand with a small ham­mer. The pat­terns are tra­di­tion­al and are still pro­duced in exact­ly the same way today. The crafts­men know exact­ly what shape the tiles must have in order to repro­duce even the most com­pli­cat­ed pat­terns after­wards and it is incred­i­ble how pre­cise­ly they can carve the tiles.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Painted ceiling.
The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Wooden beams are painted for the ceiling.

The ceil­ings and ceil­ing beams are dec­o­rat­ed with a mix­ture of relief and paint­ing. Although they are many meters high, there is no lack of detail. You almost wish you had binoc­u­lars to see every­thing in detail!

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Decorated beams.

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

If you look up in the court­yard, you can dis­cov­er beau­ti­ful Islam­ic vaults in the cor­ners of the courtyard.

These muqar­nas, or hon­ey­comb vaults, are typ­i­cal of Islam­ic archi­tec­ture and are com­pli­cat­ed to make.

The students’ accommodation

The rooms for the stu­dents are locat­ed in the side wings, both on the first floor and the upper floor. Long cor­ri­dors lead to small atri­ums around which small, sparse cells are arranged.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Hallway.
The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Court for light.

There are 130 of these cells in total. Some of the cells are two-storey, some have win­dows and all were appar­ent­ly occu­pied by sev­er­al students.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. View into one of the students rooms.

The cells are func­tion­al, small and offer lit­tle space for fur­ni­ture. There can’t have been much more than a place to sleep in the cells.

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

Some of the more spa­cious cells were appar­ent­ly reserved for teachers.

The washroom

On the first floor of the east­ern wing is the old bathing facil­i­ty, now appro­pri­ate­ly used as a toilet.

Even if you don’t need to use the restroom, you should take a look inside.

4 beau­ti­ful columns sur­round a water basin in the mid­dle and it is easy to imag­ine how stu­dents used to wash them­selves here.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Public Bathroom.

The theological school

The Madrasa is not the actu­al school, but only the dor­mi­to­ry of the Koran school. Stu­dents who did not come from Mar­rakech could stay here to be taught in the near­by Ben Youssef Mosque.

The mosques were the actu­al places of learn­ing and the sul­tan’s palaces were also used for teaching.

The 500-year-old Koranic school Medersa Ben Youssef in Marrakech is one of the most important monuments in Morocco. Inner courtyard overview.

Islam­ic the­ol­o­gy and Islam­ic law were taught. It is said that over 800 stu­dents stud­ied here.

A stu­dent of the Koran­ic school was called a taleb. Lit­er­al­ly the seek­er, this term referred to a stu­dent of reli­gious studies.

The Madrasa main­ly took in boys from the areas of the High Atlas and the regions south of it. Most of them had already mem­o­rized the Koran from the age of 7. They also learned Ara­bic, as the peo­ple in the moun­tain regions are Berber and there­fore speak Berber rather than Arabic.

Basic edu­ca­tion in their vil­lages was com­plet­ed by the age of 10. Those who want­ed to study fur­ther were taught in spe­cial schools in the larg­er towns. The edu­ca­tion includ­ed gram­mar, lit­er­a­ture, the basics of law and Islam­ic reli­gious studies.

Fancy a city tour of Marrakech?

Our part­ner GetY­our­Guide* offers guid­ed city tours and food tours with friend­ly local guides who will show you the hid­den cor­ners of the medina.

Only at the age of 20 could the best stu­dents trans­fer to a pres­ti­gious Koran­ic school such as the Ben Youssef Madrasa and con­tin­ue their stud­ies with a degree. This required a rec­om­men­da­tion from their teacher and they had to pass an entrance test.

The cost of the edu­ca­tion was borne by the sul­tan. They cooked, ate and slept in the rooms.

Lessons took place in the mosque next door. Some cours­es also took place in the Madrasa. Stu­dents could also attend class­es in the oth­er mosques in the city. Some of the teach­ers were very famous and stu­dents came from far to attend their classes.

In the first cen­turies of the Koran school, reli­gion was the main sub­ject taught. Lat­er, the Ara­bic lan­guage and sub­jects such as phi­los­o­phy, med­i­cine, math­e­mat­ics, astron­o­my, geog­ra­phy, physics and chem­istry were added.

Some stu­dents improved their finan­cial sit­u­a­tion by copy­ing old texts or text­books. The libraries were locat­ed at the mosques, not in the Madrasa.

Edu­ca­tion relied heav­i­ly on mem­o­riza­tion and lis­ten­ing rather than practicing.

The edu­ca­tion was com­plet­ed by a pil­grim­age to the holy cities in the coun­tries of the Mid­dle East.

Even today, the Madrasa exudes an air of calm that makes it easy to imag­ine stu­dents sit­ting in the shade of the pil­lars, review­ing their lessons or chat­ting with their friends.

In any case, I find it fas­ci­nat­ing how much impor­tance was attached to a pleas­ant spa­tial atmos­phere in ear­li­er times, which sup­port­ed the rea­son for the build­ing’s exis­tence so well and has sur­vived over the centuries.

The Ben Youssef Madrasa is a real oriental gem.

Ben Youssef Madrasa

Rue Assouel
Mar­rakech 40000, Maroc
www.medersabenyoussef.ma

The Madrasa is open dai­ly from 09 — 19 hrs. The entrance fee is 50 dirhams.

Looking for more information on Marrakech?

Vis­it our trav­el guide to learn more about the red city!

Marrakesh Travel Guide Riad Selouane

Scroll to Top