Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
The kasbah was built in the 16th century on the orders of the Saadian sultan Muhammad al-Shaykh in 1549. The Saadians, who had their capital at Marrakech, built forts around Fes to keep its population under control as much as for defending it from outside enemies. Kasbah Tamdert was the first of the Saadian fortifications built in the city, consisting of a simple walled enclosure (a kasbah), while years later the Saadians built the heavier fortresses of Borj Nord, Borj Sud, and the bastions on the eastern side of Fes el-Jdid. The name Tamdert was a local Amazigh (Berber) name. The kasbah continued to be used for military purposes up to the 20th century, when it served as the barracks of the sultan's tabors in 1911 and continued to be used as a barracks during the French Protectorate period (1912–1956).
^ Le Tourneau, Roger (1949). Fès avant le protectorat: étude économique et sociale d'une ville de l'occident musulman. Casablanca: Société Marocaine de Librairie et d'Édition.
Métalsi, Mohamed (2003). Fès: La ville essentielle. Paris: ACR Édition Internationale. p. 37. ISBN978-2867701528.