Almohad Mosque (1172–1248)
The Almohad caliph Abu Yaqub Yusuf ordered the construction of a new grand mosque for the city on 1172 on the south end of the city. The new mosque was dedicated in 1182, but was not completed until 1198. It supplanted the one built between 829 and 830 by Umar Ibn Adabbas on the site of the present-day collegiate church of Divino Salvador as the main prayer hall in the city. Larger and closer to the city's alcázar, the mosque was designed by the renowned architect Ahmad ben Basso as a 113 x 135 m rectangular building with a surface of over 15,000 m², including a minaret and ablutions courtyard. Its prayer hall consisted of seventeen aisles oriented southward, perpendicular to its Qibla wall, in the manner of many mosques of Al-Andalus, including the mosque of Ibn Adabbas.