Marrakesh was founded by the Almorabits 1070-1072. After a destructive struggle, it fell to the Almohads in 1147. Following this, Jamaa el-Fna was renovated along with much of the city. The city walls were also extended by Abou Yacoub Youssef and particularly by Yacoub el Mansour from 1147-1158. The surrounding mosque, palace, hospital, parade ground and gardens around the edges of the marketplace were also overhauled, and the kasbah was fortified. Subsequently, with the fortunes of the city, Jamaa el Fna saw periods of decline and also renewal.