The earliest parts of the Great Mosque of Cordoba, located in Spain, were built on the site of a Christian church by the Umayyad ruler Abd al-Rahman I in 784–786.