The Church de San Andrés is located on the site of a former church from the times of Moorish occupation. The former church had been frequented as a parish church by the patron saint of Madrid, San Isidro Labrador, and his wife Santa María de la Cabeza, who lived nearby.
The adjacent chapel of San Isidro was built at the site of the saint's house. Its construction began in 1657, after the saint was canonized in 1622. Further reconstructions were performed in 1663 and 1669, and later in 1783 and 1789. The initial construction in Baroque style was fashioned by José de Villarreal, and later Pedro de la Torre and Juan de Lobera. Much of the internal decoration, including paintings, were destroyed during the Spanish Civil War.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.