The Mezquita was built from a visigothic basilica from the 5th century, reusing its materials, and is one of the few surviving Spanish rural mosques.
It is an oddly-shaped building, made of brick and stone in a trapezoid shape, probably because of the hilly terrain. The oration room has 5 naves, whose arches, like in the Mezquita in Cordoba, are perpendicular to Qibla. The central nave is wider than the 2 nearby, which are in turn wider than the 2 outer naves. The Mihrab has lost its paint, and looks quite archaic; only the brick and stone is visible. In the oration room, 16 undated tombs were found.
When Spain became Christian, many changes were made, including the addition of a central axis in accordance with the new religion. The old door and the North flank were also reconstructed. Despite these changes, the whole building still retains a rustic charm.
References:The Temple of Edfu is one of the best preserved ancient shrines in Egypt. It was built in the Ptolemaic Kingdom between 237 and 57 BC.
Edfu was one of several temples built during the Ptolemaic Kingdom, including the Dendera Temple complex, Esna, the Temple of Kom Ombo, and Philae. Its size reflects the relative prosperity of the time. The present temple initially consisted of a pillared hall, two transverse halls, and a barque sanctuary surrounded by chapels. The building was started during the reign of Ptolemy III Euergetes and completed in 57 BC under Ptolemy XII Auletes. It was built on the site of an earlier, smaller temple also dedicated to Horus, although the previous structure was oriented east–west rather than north–south as in the present site.