This section of wall remains of the city established in 1916 when the French colonial forces entered the Tafilalt region for specific military purposes. The French mobile army unit chose an elevated spot overlooking both banks of the Ziz River. There, they laid the foundation stone for the military site named “Ksar Souk,” which was later renamed Errachidia.
After independence, Ksar Souk became the provincial capital. Based on a decree dated November 17, 1975, it was renamed Errachidia after Prince Moulay Rachid. It remained an independent center until the 1992 electoral division, after which it was elevated to the status of an urban municipality.