page_title: Marrakesh
section_title: Geography
hierarchical_section_title: Marrakesh / Geography
context_page_description: Marrakesh is the fourth largest city in the Kingdom of Morocco. It is the capital of the mid-southwestern region of Marrakesh-Safi. It is west of the foothills of the Atlas Mountains. Marrakesh is 580 km southwest of Tangier, 327 km southwest of the Moroccan capital of Rabat, 239 km south of Casablanca, and 246 km northeast of Agadir.
  The region has been inhabited by Berber farmers since Neolithic times. The city was founded in 1070 by Emir Abu Bakr ibn Umar as the imperial capital of the Almoravid Empire. The city was one of Morocco's four imperial cities. In the 12th century, the Almoravids built many madrasas and mosques in Marrakesh that bear Andalusian influences. The red walls of the city, built by Ali ibn Yusuf in 1122–1123, and various buildings constructed in red sandstone during this period, have given the city the nickname of the "Red City" or "Ochre City". Marrakesh grew rapidly and established itself as a cultural, religious, and trading center for the Maghreb and sub-Saharan Africa. Jemaa el-Fnaa is the busiest square in Africa.
  After a period of decline, the city was surpassed by Fez, but in the early 16th century, Marrakesh again became the capital of the kingdom.
context_section_description: By road, Marrakesh is 580 kilometres (360 mi) southwest of Tangier, 327 kilometres (203 mi) southwest of the Moroccan capital of Rabat, 239 kilometres (149 mi) southwest of Casablanca, 196 kilometres (122 mi) southwest of Beni Mellal, 177 kilometres (110 mi) east of Essaouira, and 246 kilometres (153 mi) northeast of Agadir. The city has expanded north from the old centre with suburbs such as Daoudiat, Diour El Massakine, Sidi Abbad, Sakar and Amerchich, to the southeast with Sidi Youssef Ben Ali, to the west with Massira and Targa, and southwest to M'hamid beyond the airport. On the P2017 road leading south out of the city are large villages such as Douar Lahna, Touggana, Lagouassem, and Lahebichate, leading eventually through desert to the town of Tahnaout at the edge of the High Atlas, the highest mountainous barrier in North Africa. The average elevation of the snow-covered High Atlas lies above 3,000 metres (9,800 ft). It is mainly composed of Jurassic limestone. The mountain range runs along the Atlantic coast, then rises to the east of Agadir and extends northeast into Algeria before disappearing into Tunisia.
  The Ourika River valley is about 30 kilometres (19 mi) south of Marrakesh. The "silvery valley of the Ourika river curving north towards Marrakesh", and the "red heights of Jebel Yagour still capped with snow" to the south are sights in this area. David Prescott Barrows, who describes Marrakesh as Morocco's "strangest city", describes the landscape in the following terms: "The city lies some fifteen or twenty miles [25–30 km] from the foot of the Atlas mountains, which here rise to their grandest proportions. The spectacle of the mountains is superb. Through the clear desert air the eye can follow the rugged contours of the range for great distances to the north and eastward. The winter snows mantle them with white, and the turquoise sky gives a setting for their grey rocks and gleaming caps that is of unrivaled beauty."
  With 130,000 hectares of greenery and over 180,000 palm trees in its Palmeraie, Marrakesh is an oasis of rich plant variety. Throughout the seasons, fragrant orange, fig, pomegranate and olive trees display their color and fruits in Agdal Garden, Menara Garden and other gardens in the city. The city's gardens feature numerous native plants alongside other species that have been imported over the course of the centuries, including giant bamboos, yuccas, papyrus, palm trees, banana trees, cypress, philodendrons, rose bushes, bougainvilleas, pines and various kinds of cactus plants.
caption: The Ourika River valley
exif: {}