After defeating the Almohads in Morocco, the Marinids moved the capital from Marrakesh back to Fez. This marked the beginning of the greatest period of the history for Fes. When the Marinids moved the capital to Fez in 1276 they started building a new town outside the old city walls. At first it was called "Madinat al-Bayda" ("the White City"), but it quickly became known as Fes el-Jdid ("New Fez"), while the old city became known as Fes el-Bali ("Old Fez"). The Marinids built the first true madrasas in Morocco, which include many of the city's most notable architectural monuments such as the Bou Inania Madrasa, the Al-Attarin Madrasa, and the Sahrij Madrasa.