[2]: 295–296 The current kasbah was created by the Alaouite sultan Mulay al-Rashid after he took over the city in 1666, acting as a garrison fort to house his tribal troops (referred to as guich or "army" tribes).
[3][1][4][2] It covers a large rectangular area measuring 400 by 550 meters.
[2]: 294 The tribe of Ashrafah occupied the fortress during the war between the Sultan and his brother Mohammed, before being deported.
[4] It constituted one of a number of similar fortifications established across the outskirts of Fez, throughout the city's history.
Today the kasbah is occupied by a hospital, a high school, and, since 1959–60, a branch or annex of the University of al-Qarawiyyin.