The Mezquita of Cordoba was originally a pagan temple, then a Visigothic Christian church, before the Umayyad Moors at first converted the building into a mosque and then built a new mosque on the site.
More
The Cathedral and former Great Mosque of Córdoba, in ecclesiastical terms the Catedral de Nuestra Señora de la Asunción, and known by the inhabitants of Córdoba as the Mezquita-Catedral, is today a World Heritage Site and the cathedral of the Diocese of Córdoba. The site was originally a pagan temple, then a Visigothic Christian church, before the Umayyad Moors at first converted the building into a mosque and then built a new mosque on the site.
It is located in the Andalusian city of Córdoba, Spain. The Mezquita is regarded as perhaps the most accomplished monument of the Umayyad Caliphate of Córdoba. After the Spanish Reconquista, it once again became a Roman Catholic church, with a plateresque cathedral later inserted into the centre of the large Moorish building.
Since the early 2000s, Spanish Muslims have lobbied the Roman Catholic church to allow them to pray in the cathedral. The Muslim campaign has been rejected on multiple occasions, by both Spanish Catholic authorities, and the Vatican. In 2010 there was a violent incident over the matter.