Marrakech was founded in 1062 by Yusuf ibn Tashfin, leader of the Moroccan Almoravid empire. He is also considered one of the most prominent leaders of the country, promoting an Islamic system in the whole country, Muslim Spain and the Maghreb. Marrakech became the capital of the Almoravid dominion.
A new religious movement from the High Atlas called Almohads seized the city of Marrakech from the Almoravid in 1147 and the Almohad Caliph Abd al-Mu’min refused to enter the city because he claimed the mosques in Marrakech were not correctly orientated.
A few years later, Abd al-Mu’min commissioned the construction of two mosques, one is the renowned Koutoubia Mosque, which was inspired by al – Andalus (Andalusian) Islamic architecture. This is why it is very similar to the bell tower of the Seville Cathedral.
In 1230 al-Ma’mun of the new dynasty, the Marinids, captured Marrakech. Shortly after, his brother Abu Yusuf Yaqub forced the Almohads to retreat to the Atlas and the Marinids ruled over Marrakech during the following two centuries. During this period, the city was slightly forgotten as the dynasty moved the capital to Fez.
The dynasty of the Marinids were replaced by the Wattasids and these were expelled by the Sharifian families.
The Sharifs are descendents of the Prophet Muhammed’s cousin Ali and his daughter Fatima. The Alaouite dynasty, which comes from the word Ali is the current Moroccan royal family.
The Saadians made Marrakech their capital during the sixteenth century. The most famous architecture from this period includes the Bab Doukkala Mosque, the Ben Youssef Madrasa built in 1570 and the Saadian Tombs.