Following the Visigothic invasion in 572, a church dedicated to San Vicente was constructed in Cordoba. However, after the Moorish conquest in 711, the church was divided between Christians and Muslims for worship. In 784, Emir Abd al-Rahman ordered the church's demolition to make way for the construction of the Great Mosque of Cordoba. This marked the beginning of a monumental project that spanned over 200 years.