Fez is a town in central Morocco, located 180 km east of Rabat, between the Rif massif and the Middle Atlas. It is the second most populous city of Morocco after Casablanca, and has been in several epochs the capital of the country and is considered today as its spiritual capital.

Its foundation goes back to the end of the 8th century, during the reign of Moulay Idriss Ier.

Fes is spread over three sectors: the ancient city (medina), a UNESCO World Heritage Site2, the royal enclosure and new districts, established by the French, now extending into the surrounding plain . Administratively, the city is composed of the municipality of Fez (divided into six districts) and the municipality of Mechouar Fez Jdid (where the royal palace is located). Fez is the second largest city in Morocco with a population of 1,112,072 according to the 2014 census.