After Abu Yusuf Ya'qub's death in 1199 the mosque and the capital remained unfinished and his successors lacked the resources or the will to finish it.[1] The kasbah itself became essentially abandoned.[2] The name "Oudaya" or "Oudaia", which is now associated with the Kasbah, dates from the 19th century, after the Udayas tribe, a guich tribe ("Army" tribe serving in the sultan's military) that was expelled from Fez by the Alaouite sultan Abd ar-Rahman in the late 18th century and whose remnants then settled in the kasbah.[13][14][15]