A LITTLE history of Chefchaouen, courtesy of http://www.chaouen.info/ and unedited, arrghh it was tough but I think it is much more charming in its original form.
A little history of Chefchaouen
The city of Chefchaouen was founded in 1471 by Mulay Alí Ben Rachid. Located in an enclave difficult to access it dominated the mercantile route between Tetuan and Fez and served as a base to restrain the entrance and influences of the Portuguese of Ceuta.
During 15th and 17th century the city prospered and grew in considerable form with the arrival of the moriscos and sefardíes who were expelled from Spain. Until nowadays the district Andalúz is one of the most popular of the medina.
The Kasbah was constructed by Mulay Alí Ben Rachid and soon recovered by Mulay Ismail at the end of 17th century to defend the city. First of all the Portuguese tried to attack the city then later the rebellious tribes Bereberes and after that the Spaniards tried to attack.
The city was closed to all the foreigners, especially to the Christians, until the beginning of the Spanish occupation in 1920.
However, at the end of 19th century the first travellers arrive: the French explorer Charles Foucauld, disguised as a rabbi; the English journalist Walter Harris as rifeño, and William Summers, an American missionary, who was poisoned and died there.
Between 1924 and 1926, during the war of the Rif, Abd-el Krim was able to expel the Spaniards, but these did not take long to occupy Chaouen again in September of 1926, this time they remained until the Moroccan independence in 1956.