Meknes (Arabic: مكناس) is a city in northern Morocco, located 130 kilometres (81 mi) from the capital Rabat and 60 kilometres (37 mi) from Fes. It is served by the A2 expressway between those two cities and by the corresponding railway. Meknes was the capital of Morocco under the reign of Moulay Ismail (1672–1727), before it was relocated to Marrakech. The population is 950,322 (2006 estimate). It is the capital of the Meknes-Tafilalet region. Meknes is named after a Berber tribe which was known as Miknasa (native name: Imknasn) in the medieval Arabic sources.
The land upon which the city is founded and much of its surrounding territory came under the domination of the Roman Empire in AD 117. (see History of Morocco). The original community from which Meknes can be traced was an 8th century Kasbah, or fortress. A Berber tribe called the Miknasa settled there in the 10th century, and a town consequently grew around the fortress. Meknes saw its golden age as the imperial capital of Moulay Ismail following his accession to the Sultanate of Morocco
According to the ICOMOS Heritage at Risk report of 2000, the historic city of Meknes contains insufficient drainage systems, and as a result suffers from inundation and leakage in certain areas