 It was granted World Heritage Status in 2012.The upper or northern part of the kasbah, above the museum, dates mostly from its foundation/reconstruction in the Almohad period under Caliph Ya'qub al-Mansur in the 12th century, while the lower parts date from the 18th century during the Alaouite period.The northern part of the kasbah is centered around the Street of the Mosque ("Rue Jamaa"), which runs between the Bab Oudaia gate and the semaphore platform, passing by the kasbah's Old Mosque.