The Kasbah of Chefchaouen is a 15th-century fortress at the heart of the medina, built shortly after the town's founding to defend against Portuguese incursions along the coast. Now home to an ethnographic museum, an art gallery, and a quiet garden courtyard, its tower offers sweeping views over the blue rooftops of Chefchaouen.