The Mosque-Cathedral of Córdoba was constructed in 786 on the ruins of a Visigoth basilica. It underwent four expansions over different periods, with the last in 988. After Christians conquered Córdoba in the 16th century, they converted the mosque into a cathedral, building a cathedral structure within it. The original orange tree courtyard was used for ritual washings but now contains a 16th century gallery.