The Historic City of Meknes in Morocco is one of the imperial cities and was the capital of the kingdom between 1672 and 1727. It is a perfect example of a fortified city in the Maghreb. Its urban planning combines European and Islamic elements. Its historic center consists of the medina and the kasbah. The first is very compact, while the kasbah has more open spaces.