Standing at the high point of the medina, the kasbah was built onto the city walls in the 11th century. It incorporates the imposing square Khalef tower, built by the Aghlabids in AD 859 at the same time as the city walls, which superseded the ribat as the city’s watchtower. The building now houses the impressive Sousse Archaeological Museum, and entry is limited to those with a museum ticket.