History
The Haouz plain and the High Atlas were Amazigh lands long before cities rose here. Around 1070 the Almoravids, Saharan Sanhaja tribesmen, founded Marrakech as their capital, giving their name to a country that Europeans long called "Morocco" after the city. Their successors the Almohads began in the High Atlas village of Tinmel, where the reformer Ibn Tumart set up his movement, and after taking Marrakech in 1147 built the Koutoubia mosque. The Saadian dynasty made Marrakech its capital again in the 16th century, building the El Badi palace, the Saadian Tombs and the Ben Youssef medersa.
On the coast, the Carthaginian navigator Hanno set up a trading post at Mogador, and Juba II of Mauretania later made purple dye there. The Portuguese fortified Safi in the early 16th century, and in the 1760s Sultan Mohammed ben Abdallah built a new, planned port at Essaouira, whose Jewish merchants handled much of Morocco's foreign trade in the 19th century. North-east, the Tadla plain around Béni Mellal and the Zayane country of Khénifra were long frontier lands between the sultan and the Amazigh tribes.
Under the French protectorate, the "lords of the Atlas" — above all Thami El Glaoui, pasha of Marrakech — ruled the south on France's behalf; the Zayane tribes of Khénifra resisted conquest until the early 1920s after defeating a French column at El Herri in 1914. The French also opened the phosphate mines at Khouribga, still among the richest in the world. Since the 1990s Marrakech has become a global tourist destination, and on 8 September 2023 an earthquake centred in Al Haouz province killed nearly 3,000 people and destroyed many mountain villages, including damage to Tinmel's mosque.
