text: There is a doubt about the actual foundation date, Ibn Khaldun and Ibn Abi Zar give it as 1062 by Yusuf ibn Tashfin while Ibn Idhari wrote that the work started in May 1070, but Abu-Bakr was recalled to the Sahara to put down a rebellion in January 1071 and the city was completed by his deputy and eventual successor Yusuf ibn Tashfin.