David I granted the chapel at Corstophine to Holyrood Abbey in 1128. By 1158, it had become a church, with altars to Saint Anne and the Holy Trinity.
A burial chapel was added to the church in 1404 by Sir Adam Forrester, who died by 1405. The chapel was dedicated to John the Baptist. The chapel was erected into a collegiate church by his son Sir John Forrester.
The foundation of the current church (on the inner eastmost wall) says the church was built in 1429 in the same churchyard as the earlier parish church, and was completed by 1437. The sandstone church was built with a tower and stone, octagonal spire, rectangular chancel, and a nave with transepts. This included the absorption of earlier Gothic features from the previous building and the erection of the characteristic barrel vaults, which may have concluded by 1436.
In 1634, the collegiate church was dissolved and in 1646 the building became the parish church. At that time the 12th-century church was razed and a new aisle was added to the collegiate fabric.Stones from the former church were used to built the porch. In 1828, a restoration by architect William Burn resulted in a two-storey sacristy, renovation of the nave, removal of a 17th-century aisle, and building of a new aisle and transept.
The nave of the church showing the concrete vaults, which replaced the original stone vaults in 1905.
The church has Scottish heraldic panels and pre-Reformation relics. James Ballantine supplied the Victorian stained glass and Gordon Webster and Nathaniel Bryson supplied the 20th-century windows. Leonardo da Vinci's Last Supper was the inspiration for the heads on the carved corbels made by William Birnie Rhind. On the grounds are a war memorial, vault and gatehouse, surrounded by a boundary wall and cast iron gates.
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.