Yusuf ibn Tashfin, the founder of the Moroccan Almoravid empire, created Marrakech in 1062.
He is also regarded as one of the most influential leaders in the nation, advocating for the spread of Islam throughout the entire nation, as well as in Muslim Spain and the Maghreb.
The Almoravid dominion’s capital was established as Marrakech.
When the Almoravids were defeated by a new religious organization from the High Atlas known as the Almohads in 1147, the Almohad Caliph Abd al-Mu’min refused to enter the city on the grounds that Marrakech’s mosques were not properly oriented.
A few years later, Abd al-Mu’min ordered the building of two mosques, one of which is the well-known Koutoubia Mosque, which was designed in the Islamic style of al-Andalus (Andalusian) architecture.
This explains why it resembles the Seville Cathedral’s bell tower so much.
Marrakech was taken by al-Ma’mun of the new Marinid dynasty in 1230.
Shortly after, his brother Abu Yusuf Yaqub drove the Almohads to flee to the Atlas Mountains, and for the next two centuries, the Marinids ruled over Marrakech.
Throughout this time, the city was slightly forgotten as the dynasty moved the capital to Fez.
The Wattasids, who were driven out by the Sharifian families, superseded the Marinid dynasty.
The Sharifs are descended from the cousin Ali and Fatima of the Prophet Muhammad.
The current Moroccan royal family is known as the Alaouite dynasty, which is named after the Arabic term Ali.
Marrakech served as the Saadians’ capital during the sixteenth century.
The Saadian Tombs, the Ben Youssef Madrasa erected in 1570, and the Bab Doukkala Mosque are some of this era’s most well-known examples of architecture.
Marrakech experienced the same experiences as the rest of Morocco when the Portuguese, the Spaniards, and the French assaulted the nation, sometimes in an effort to put an end to the pirates and other times in retaliation for having been too generous with it.
However, in general, to maintain control over the country’s natural resources and advantageous location as Africa’s gateway.
Up until 1956, when Morocco proclaimed its independence, there are only brief intervals of peace in the country.
It had drawn the attention of numerous European nations for ages, who fought valiantly to maintain control over it.
Rabat became the new capital in 1911, while Marrakech became the center of the nation’s southwest.
Currently, the city’s main industries include tourism, agricultural products that are primarily shipped to Europe, and canned vegetables.
The minerals that are mined from the Atlas are transported from this area, which also serves as the region’s commercial hub.