Marrakech is the third largest city in Morocco after Casablanca and Rabat.The name Morocco itself derives from Murrakush. Prior to the advent of the Almoravids dynasty in the 11th century, the area was ruled from the city of Aghmat.
The Almoravid leader, Abubakr ibn Omar decided Aghmat was becoming overcrowded and decided to build a new capital. Being a nomad from the Sahara Desert, he decided to build it in a plain, away from the mountains and rivers. Work started in May 1070.
The city was completed by his deputy and successor Youssef ben Tachfin. the city experienced its greatest period under the leadership of Yacoub Al Mansour, the third Almohad sultan, the founder of the Koutoubia mosqueand the new Kasbah. Marrakesh was the capital of Morocco during the reign of Moulay Ismail.
Marrakech is known for its “seven saints”.When Soufim was at the height of its popularity,Moulay Ismail decided to move the tombs of several renowned figures to Marrakesh to attract pilgrims.
Marrakech was dominated in the first half of 20th century by “Thami Elglaoui” , Lord of the Atlas and Pasha of Marrakech.