Read the story
In the 1480s, a band of refugees from Granada came into a green valley near Morocco's Mediterranean coast and found a town that was barely there. Tetouan had been wrecked by Castilian forces around 1399, punishment for the pirates who sheltered in it. Now Castile was closing in on Granada itself, and these Andalusians needed somewhere to begin again.
Their leader was Ali al-Mandri, a captain who had fought for Boabdil, Granada's last Muslim ruler. He did what a soldier does first. Before anyone built a house, the exiles raised walls. Only then did the enclosure fill with homes. The chronicler Leo Africanus later wrote that al-Mandri added a castle ringed by a deep ditch, and that his horsemen raided the Portuguese towns along the coast, putting captives to work on the fortifications.
What grew inside those walls was Granada remembered, a homeland rebuilt from memory. Sephardic Jews expelled from Spain found refuge here too, and in the early sixteen hundreds, exiled Moriscos added a quarter of their own. Moroccans still call Tetouan the White Dove, and sometimes Granada's Daughter.
Spain came back. In February 1860, General Leopoldo O'Donnell's army marched in and held the city until 1862. In 1913 the Spanish returned for good, making Tetouan the capital of their protectorate until independence in 1956. They built their new town beside the old one, not on top of it: the Ensanche, a district of Spanish-style blocks around a circular plaza, just outside the medina walls. Between them sat the Feddan, an old gathering square that in the 1980s became the esplanade of the Royal Palace.
So the medina survived. In 1997, UNESCO named it a World Heritage Site, calling it one of the smallest medinas in Morocco, and unquestionably the most complete. Five kilometers of wall and seven gates still trace the shape that exiles drew around a lost city they refused to forget.