Early history: Almoravid and Almohad periods Marrakesh was founded by the
Almoravid dynasty in 1070 by
Abu Bakr ibn Umar and subsequently developed by his successors.Abu Bakr ibn Umar| Initially, the city's two main monuments and focal points were the fortress known as
Ksar el-Hajjar ("fortress of stone") and the city's first
Friday mosque (the site of the future
Ben Youssef Mosque). The Ksar el-Hajjar was located directly north of today's
Kutubiyya Mosque. The major
souk (market) streets of the city thus developed along the roads linking these two important sites and still correspond to the main axis of souks today. At one end of this axis, next to the Ksar el-Hajjar, a large open space existed for temporary and weekly markets. This space was initially known as
Rahbat al-Ksar ("the place of the fortress"). Other historical records refer to it as
as-Saha al-Kubra ("the grand square"), or simply as
as-Saha or
ar-Rahba. After a destructive struggle, Marrakech fell to the
Almohads in 1147, who undertook many construction projects throughout the city. This included construction of the nearby Kutubiyya Mosque, begun in 1147, which was meant to replace the Almoravid-built Ben Youssef Mosque as the city's main mosque. Notably, a new royal
kasbah (citadel) was erected further south by
Ya'qub al-Mansur after 1184.
Later history: Saadian period to modern times Despite the encroachment of new constructions on the edge of the square over time, it never disappeared due to its role as an open market area and as the site of public events. On January 24, 1864, a massive explosion took place in the area of the square, reportedly caused by the criminal negligence of certain officials trying to avoid a government inspection. A fire in a
funduq (commercial warehouse) ignited 500
quintals of
gunpowder which were dangerously stored there. The explosion damaged houses and shops in a wide radius and resulted in some 300 deaths. Beginning in May 2025, the square underwent a major renovation program scheduled for completion by the end of the year. With a budget of 160 million dirhams (approximately US$17.7 million), the project was designed to upgrade infrastructure, enhance accessibility, and reorganize public and commercial spaces while safeguarding the square’'s historic and cultural significance. ==The Square==