Located on a fertile plain, Marrakesh is one of Morocco's four imperial cities. Founded in eleventh-century as the African capital of Almoravid dynasty; it was conquered by the Almohads in 1147, and then to Marinids, only to be taken by the French in 1912.
Marrakesh was founded in 1062 by Yusif Ben Tashfin, the first ruler of the Almoravid dynasty. His son, Ali, built the Ben Yussef Mosque and the city wall. The Almohads (1146-1268) made Marrakesh the capital of their empire and it was during this period that the Koutoubia was built.
The Marinids (1268-1520) neglected Marrakesh but they were succeeded by the Saadians (1520-1668) who endowed the city with the Badi' palace, the Ben-Yussef madrasa and the Saadian mausoleum.
From 1668 onwards, the Alawites, who resided in Marrakesh only occasionally, erected numerous buildings such as the palace of Bahia and Dar Si Saod at the end of the nineteenth-century. Later, the modern town was to develop three kilometres from the Medina, with its wide avenues bordered with palm-trees, orange-trees and jacarandas.
When first created in the 11th century, Marrakesh was a link on the caravan route that joins the south and the north of Morocco by way of the valleys up the Upper Atlas. Routes from the Tafilelt region and the Draa valley also converged on Marrakesh. Later, as the capital of the Almoravid and subsequently the Almohad empires (eleventh and thirteenth centuries), it became the seat of the unique authority ruling the entire Muslim West, including Andalusia.
At that time, Marrakesh was a large metropolis, housing probably up to 100,000 inhabitants.
Between the thirteenth and early sixteenth centuries, Marrakesh experienced a period of decline due to the displacement further east (in Algeria, Tunisia and particularly Egypt) of roads used to transport African gold, and the relocation of Morocco's capital to Fez. During the sixteenth and seventeenth centuries, under the Saadians, Marrakesh was revived and flourished thanks to the gold trade, and the conquest of Tombouctou by the Saadians.
A new railway station has been inserted in roughly ten hectares of track and switching yards in Marrakesh, providing a modern facility the designers hope will be emblematic of the city. The designs include references to the Almohad gate, Jamaa al Fna, and other urban landmarks in Marrakesh. The architects have also followed an urbanistic program that responds to the street grid: the site internalises external streets, and interfaces with pedestrian and vehicular access. It is estimated that 60% of the costs of construction have been covered by rents for commercial spaces - shops and restaurants - and it is also estimated that two thirds of visitors to the station are non-travellers.