Chefchaouen (Arabic: شفشاون, romanized: Shafshāwan, IPA: [ʃafˈʃaːwan]; Berber languages: ⴰⵛⵛⴰⵡⵏ, romanized: Ashawen), also known as Chaouen, is a city in northwest Morocco. It is the chief town of the province of the same name and is noted for its buildings in shades of blue, for which it is nicknamed the "Blue City". Chefchaouen is situated just inland from Tangier and Tétouan.
It was founded as a military outpost shortly before the Spanish Reconquista of Granada, and its population grew quickly with Muslim and Jewish refugees fleeing from Spain. The economy is based on a traditional agro-pastoral system with olive and fig plantations; numerous water mills for grinding grain and olives; a handicrafts sector focusing on leather, iron, textiles, and carpentry; and summer-dominated tourism.