The Church of Cristo de la Luz is a mosque built over 1,000 years ago on the ruins of a Visigothic church. It was later made into a Mudejar church, but the arches and vaulting of the mosque remain, and it is one of the oldest Moorish buildings in Spain. The name comes from the legend of when Alfonso V1 entered the captured city and his horse knelt in front of the mosque. A lamp was found in a walled up niche. It had been burning miraculously from the time of the Visigoths.