The history of Marrakesh, one of the most beautiful and unique cities in the world, considered by many to be the cultural capital of Morocco
The foundation of Marrakesh
The area around Marrakesh has been inhabited since Neolithic times by Amazigh farmers who established their crops here. It is no coincidence that just 30 km to the southeast stood Aghmat, the ancient southern capital of the Idrisids, the first dynasty of Morocco after the arrival of the Arabs. The city of Marrakesh was in fact born with the Almoravid conquest of the area; the new rulers were looking for a new capital both in terms of position and conformation, so that it could represent a real rebirth of the entire Moroccan kingdom.

According to tradition, Abu Bakr ibn Umar, the then chief of the Almoravids, of nomadic and Amazigh origins, pitched his tent in the desert, near the Issil river; over time the latter became fixed, being replaced more and more frequently by real houses made with mud bricks with a typical red color, so much so that in a short time Marrakech was nicknamed “al Hamra” or “The Red”. Although connected from the beginning to the north of the country, the city and its fortunes have always been linked to the
The capital takes shape
Although it was named the new capital of the kingdom, for many years it remained solely and exclusively an administrative center, with Aghmat which instead continued to play the role of true city of the people and of commerce in the area; this changed radically with the rise to power of Ali ben Youssef, the 5th Almoravid ruler. The latter applied himself more than ever to making Marrakesh the most prosperous city in Morocco, building aqueducts, wonderful palaces, souqs and the mosque that still bears his name today, among the oldest and most majestic in the country.

The emir’s interventions managed to give the city its lifeblood, so much so that within a few years most of the best craftsmen and traders decided to have their houses and shops built here, transforming a place that up to 100 years earlier was pure desert in an oasis of beauty and prosperity. The importance of the tanners should be underlined, which over time became one of the most characteristic and refined industries of this town. Unfortunately for the Ben Youssef dynasty, as early as 1146 Marrakesh was conquered by a new lineage, the Almohads.
The arrival of the Almohads
The new arrivals immediately set about changing the layout of the city so much so that, according to tradition, Abd al-Mu’min, the new ruler, the mosques were oriented in the wrong way and therefore he demolished them all and had them rebuilt from the beginning; the transformation was so impressive that almost no trace of the Almoravid architecture remains today.

Under the new dynasty, Marrakesh became one of the most beautiful and largest cities in the world, with incredible constructions both in terms of mosques and gardens and attracting scholars of the caliber of Averroes, Ibn Tufayl and many others. It was under the Almohads that, to celebrate the splendor of the capital, the whole kingdom began to be called “Morocco”, a word that derives from the Latin mispronunciation of the name “Marrakesh”. With the death of the Almohad caliph Yusuf al Mustansir, the entire caliphate fell victim to internal strife and unrest, favoring the Spanish Reconquista in Andalusia and the expansion of the
Marinids, sufis and Portuguese
With the taking of the city in 1276, the new arrivals moved their capital to Fez and this is because their lineage was originally from the north of the country, and because the Almohads were repeatedly accused of heresy and this made the new lords think that that place was somehow “cursed”. However, the proud inhabitants suffered their fate with anger and for centuries Marrakesh became one of the hottest cities in the country, with continuous and constant revolts that led it to form, from 1393, a kingdom that was in fact only nominally subjected to the Marinids, obeying rather to the local Hintata clan.

At the beginning of the 15th century several Sufi orders made their appearance in Morocco, two of which will forever influence the clash between Fez and Marrakesh; specifically, the brotherhood that became more established in the North was that Qadiriyya, while in the South will flourished the Shadhiliyya, which saw Sheykh al Jazuli as its greatest exponent. After conquering Ceuta and Tangier between 1419 and 1437 in the 16th century the Portuguese pushed ever further south, conquering cities such as Agadir, Safi and El Jadida, thus seeking an alliance with the rulers of Marrakesh. These initially made agreements with the new power, however, soon opposing strenuous resistance and managing to defeat them in 1516 thanks to the arrival of a new dynasty, the Sa’adian.
The Sa’adians
This lineage is particularly important as it managed to free all of Morocco from the Portuguese yoke, then starting to conquer the country in turn and in the meantime taking Marrakesh in 1524; among the various rulers of this lineage, the most interesting is certainly Muhammad al Sheykh. The latter first managed to definitively eliminate the Lusitanian presence in the country, then conquering Fez, then in Wattasids, in 1549 and, just a year later, Tlemcen, in present-day Algeria. This move placed the Sa’dians in dispute with the

In fact, the latter, in order to raise the image of his kingdom, decided to compete with Constantinople in terms of beauty and for this reason he began to build most of the most characteristic places in the city, also redesigning the urban plan. The son will continue his father’s work, building places of absolute beauty, such as the El Badi palace, and even going so far as to conquer Timbuktu, then in the hands of the Songhai Empire; unfortunately for him, from 1598 to 1607 Morocco was devastated by the plague and the disease led to the death of the sovereign in 1603. A curiosity: the works for the Jemaa al Hana mosque (Mosque of Prosperity) began right under him, but precisely because of the plague epidemic the latter was never completed and for this reason that place was called “Jemaa al Fnaa” (Mosque of the Ruins), turning into the most famous square in all of Morocco.
The ‘Alawis
Due to the plague and some heavy family tensions, the Sa’dian lineage definitively saw its end in 1659 with a coup by some local Bedouin tribes. The power vacuum soon came from the Alawites, the dynasty that still rules Morocco today. The latter were originally from Tafilalet, but the one who brought the family to the lips of all Moroccans was Mulay al-Rashid, who had set up his base in Taza. He took Fez in 1666 and Marrakech in 1669, completing the year after the reunification of much of the country. With his death, however, dynastic tensions arose again, which in this specific case concerned the Red City.

In fact, the inhabitants of Marrakesh refused to follow the will of Mulay and in place of his brother, Ismail ibn Sharif, proclaimed his nephew, Ahmad ibn Muhriz, sultan; this led to a 15-year civil war which saw the city itself as the first defeated. In fact, Ismail decided to move his capital to Meknes and, in defiance of Marrakesh, ordered that most of his most beautiful decorations be transported to the new metropolis. It must be said that the new ruler instituted the pilgrimage to the Seven Saints, a practice that still distinguishes the city today. Ismail’s nephew, Mohammed III, will then be particularly significant due to the many architectural works carried out in Marrakesh.
At the origins of colonialism
With the death of Mohammed III, for the umpteenth time, there was a substantial dynastic crisis which led Fez and Marrakesh to split over the new local ruler, seeing Mulay Sulayman as the winner, who once again had the mosque of Ali ben Youssef. His successors will govern an increasingly fragmented Morocco terrified of the imminent European invasion; it is no coincidence that in 1860 the Treaty of Wad Ras was signed with which, among other things, Ceuta and Melilla were ceded to Spain. With the death of the Grand Vizier regent and the famine that struck the country between 1905 and 1907, the sovereign Abdelaziz came to sign the humiliating Conference of Algeciras of 1906 with which the control of the police was ceded to Spain and France and in general of all local public services.

The brother of the sovereign and caliph of Marrakesh, Abdelhafid began to animate a revolt against the monarch and this caused a significant wave of anti-European sentiment, culminating in the lynching of Emile Mauchamp, a French doctor accused of espionage; this provided the transalpines with the opportunity to intervene directly in the country, first occupying Oujda in 1907 and then Casablanca. Abdelhafid will still manage to become the new ruler of Morocco, but, due to the great internal economic problems, he was forced in a short time to make heavy concessions to the French and suffer the Spanish expansionist aims. At the height of the crisis, the Maghreb government was even inclined to seek an agreement with Germany (which in the meantime had sent a gunboat to the port of Agadir) to transform the south of the country into a German protectorate with Marrakesh as its capital; the latter however in the meantime found agreements with France which will lead Morocco to sign the infamous Treaty of Fez of 1912, which definitively transformed the country into a French protectorate.
The French protectorate, the age of Thami El Glaoui
With the rise to power of the first military governor, Hubert Lyautey, tensions grew dramatically, so much so that a large part of the Moroccan army deserted and King Abdelhafid himself began to support the rebels, which led the Paris government to oust him in favor by Maulay Yussuf, more accommodating towards the new invader. This will lead the South to support Ahmed al Hiba, known as “the Blue Sultan”, who in a short time managed to gather around him the support of most of the local clan leaders by being proclaimed the new Sultan of Marrakesh in 1912. A few months later, however , the transalpine army managed to convince many local governors to betray the new leader and the battle of Sidi Bou Othmane brought the whole country back into French hands, with Thami El Glaoui being named pasha of Marrakesh..

This character was among the Moroccans who most profited from the French domination, enriching themselves excessively through the sale of all sorts of goods and business, some of which were linked to corruption and drug trafficking; it is no coincidence that he remained lord of the city throughout the French protectorate. During this dominion the transalpines created the whole new part of the city almost from scratch, touching the old part as little as possible; this is due to the fact that Lyautey was particularly in love with Moroccan architecture and culture and therefore categorically prevented any internal changes to the Kasbah, as well as forbidding in any way access to the mosques by non-Muslims.
The birth of Moroccan independence
In 1927 Mohammed V ascended the throne and one of the first and controversial provisions that he will have to sign will be the Dahir of 1930. With this decree it was established that all the Amazigh tribes would remain outside Islamic law, maintaining their own laws which would however be partially subject to the French courts. This led to an incredible wave of popular uprisings as an attempt to divide the country and de-Islamise it was seen, thus leading to the emergence of the country’s first independence and nationalist movements.

In 1940 France was invaded and the dominion over Morocco passed to the Vichy Republic, which never enjoyed the sympathy of Mohammed V, so much so that it refused to hand over the Moroccan Jews and gave a very warm welcome to the Allies, calling the Casablanca Conference of 1943. This event was of incredible significance for the fate of the Second World War and at the same time it was a great opportunity for Moroccan independence activists to show the world their desire for freedom, leading to the formation of the Hizb al Istiqlal party and years of repression by French, completed in 1946.
Independence
In fact, the new French governor proved to be more compliant towards the Moroccans and began to dialogue with the Istqlal; this will give courage to the king who, the following year, made a trip to Tangier in which he gave a famous speech in which he declared his support for the ideas of the party. This event sent Thami El Glaoui into a rage who organized with the transalpines the deposition and exile of the king in favor of his cousin, Mohammed ben Arafa.

From that moment the independentists organized a fierce and proud resistance against the French and Spanish, so much so that in 1954 El Glauoi changed his mind, bringing Mohammed V back to the throne the following year. In 1956 France and Spain definitively recognized Moroccan independence; curiously El Glaoui, a man always associated with the French occupation, died a few months earlier, unable to see a free Morocco again.
From that moment Marrakesh was considered the cultural capital of the country, so much so that the old city has been considered a UNESCO heritage site since 1985.
Follow me on facebook, Spotify, YouTube and Instagram, or on the Telegram channel; find all the links in one place: here. Every like, share or support is welcome and helps me to devote myself more and more to my passion: telling the story of the Middle East and the “Islamic world”. This article was first released on January 12, 2023 in the Medio Oriente e Dintorni crowdfunding; support the project by financing the Crowdfunding active from 12 January 2023, for you many exclusive and preview contents to discover the Middle East and the “Islamic world” at 360 degrees, if it goes well it will become a fixed appointment.
