There was a church on the site of St Mary's since circa 1328, erected by Henry de Gower, Bishop of Saint David's. One Sunday morning, in 1739, the roof of the nave collapsed into the church while the congregation was waiting to enter the building. The whole structure was re-built apart from the tower. 1822 saw the church being lit by gas for the first time with thirty six lamps. The church underwent complete renovation between 1879 and 1882 by Vicar Dr Morgan. In 1896, the church was flattened and rebuilt again under the designs of Arthur Blomfield by Dean Allan Smith, though some parts of the old church survived the re-development. In February 1941 the church was extensively damaged by Bombing during the Blitz. It was not rebuilt until the 1950s.
From the 1890s the Swansea Devil stood on a set of buildings facing the west side of the church, constructed by a disgruntled rival of Blomfield's, angry at the commissioning of Blomfield's designs over his own.
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.