The Kasbah of Agadir is also called the Agadir Oufella, which means "the citadel from above". It was built in 1540 by Sultan Mohammed ech-Cheikh, who belonged to the Sâadienne dynasty, to protect himself from potential invasions, particularly the Portuguese.
Before it was destroyed in the 1960 earthquake, the Kasbah was home to residents and comprised a hospital, an outer wall supported by towers designed for defensive purposes, a large mosque, houses, alleyways, the Treasury and mail building, a Jewish temple and a sanctuary.