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". It is situated in a mountainous region in northern Morocco, between Tétouan and Ouazzane.It was founded as a military base in 1471, shortly before the Spanish conquest of Granada, and its population grew quickly with Muslim and Jewish refugees fleeing from Spain. Local culture has been influenced by the mixture of Andalusi and Ghomara people. The old walled city, or medina, is still well-preserved alongside a more modern townscape outside its walls. The economy is characterized by artisanal Berber crafts and tourism.