Meknes (Arabic: مكناس, translit. məknas; Berber languages: ⴰⵎⴽⵏⴰⵙ, translit. amknas; French: Meknès) is one of the four Imperial cities of Morocco, located in northern central Morocco and the sixth largest city by population in the kingdom. Founded in the 11th century by the Almoravids as a military settlement, Meknes became capital of Morocco under the reign of Sultan Moulay Ismaïl (1672–1727), son of the founder of the Alaouite dynasty. Moulay Ismaïl turned Meknes into an impressive city in Spanish-Moorish style, surrounded by high walls with great doors, where the harmonious blending of the Islamic and European styles of the 17th century Maghreb are still evident today. The city recorded a population of 632,079 in the 2014 Moroccan census. It is the seat of Meknès Prefecture and an important economic pole in the region of Fès-Meknès.