further expansions to the mosque were carried out. Indeed, the collapse of authority had immediate negative consequences for the mosque, which was looted and damaged during the fitna (civil conflict) that followed the caliphate's fall (roughly between 1009 and 1030). Cordoba itself also suffered a decline but remained an important cultural center. Under Almoravid rule, the artisan workshops of Cordoba were commissioned to design new richly-crafted minbars for the most important mosques of Morocco – most famously the Minbar of Ali Ibn Yusuf commissioned in 1137 – which were likely inspired by the model of Al-Hakam II's minbar in the Great Mosque. In 1146 the Christian army of King Alfonso Vll of Léon and Castile briefly occupied Cordoba. The archbishop of Toledo, Don Raimundo, accompanied by the king, led a mass inside the mosque to "consecrate" the building. According to Muslim sources, before leaving the city the Christians plundered the mosque, carrying off its chandeliers, the gold and silver finial of the minaret, and parts of the rich minbar. As a result of both this pillage and the earlier pillage during the fitna, the mosque had lost almost all of its valuable furnishings. In 1162, after a general period of decline and recurring sieges, the Almohad caliph Abd al-Mu'min ordered that Cordoba be prepared to become his capital in Al-Andalus. As part of this preparation, his two sons and governors, Abu Ya'qub Yusuf and Abu Sa'id, ordered that the city and its monuments be restored. The architect Ahmad ibn Baso (who was later known for his work on the Great Mosque of Seville) was responsible for carrying out this restoration program. It is not known exactly which buildings he restored, but it is almost certain that he restored the Great Mosque. It is likely that the mosque's minbar was also restored at this time, since it is known to have survived long afterwards up to the 16th century. Reconquista and conversion to cathedral (13th–15th centuries) In 1236 Córdoba was conquered by King Ferdinand III of Castile as part of the Reconquista. Upon the city's conquest the mosque was converted into a Catholic cathedral dedicated to the Virgin Mary (Santa Maria). The first mass was dedicated here on June 29 of that year. According to Jiménez de Rada, Ferdinand III also carried out the symbolic act of returning the former cathedral bells of Santiago de Compostela that were looted by Al-Mansur