His son Abu Inan Faris built the famed Bou Inania Madrasa, and by the time of his death, every major city in the Marinid Empire had at least one madrasa.[57] The largest madrasa in the heart of the medina is the Cherratine Madrasa commissioned by the Alaouite sultan Al-Rashid in 1670.[58]