Mentioned for the first time in 1018, the St. Mary's Church, owned by the bishops of Elne, was acquired by count Wilfred II of Cerdanya, who made their capital in the town, in 1025. In 1094 count William I ordered the construction of a monastery here, which was founded in 1097 and entrusted to the Augustinians.
Until 1167, the priory acquired numerous privileges and possessions, including castles and villages. In 1356 King Peter III of Aragon ceded to the monks the old palace of the counts.
In the 14th century the church was fortified with a line of walls featuring pyramidal merlons. The priory continued to increase in importance until its secularization in 1592. After the French Revolution in 1789 it was repeatedly modified.
The church, in Romanesque style, has a façade in pink marble, surmounted by a tympanum decorated by a Madonna enthroned with Child and Angels. The columns supporting the archivolts have capitals with rampaging lions, palms and sheep. The circular apse features exteriorly Lombard bands and a sawtooth-shaped frieze, as well as three windows with archivolts over small columns.
The interior is on a nave and two aisles. It houses a retablo by Jaume Cascalls (1345). The bell tower is in Lombard Romanesque style; it has Lombard bands decorating each of the three storey, the middle one having two windows and the upper one a large arch.
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.