Originally constructed in the Marinid era, the French used it at an arms depot during colonization. It has been renovated and expanded multiple times.