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:Doune Castle was originally built in the thirteenth century, then probably damaged in the Scottish Wars of Independence, before being rebuilt in its present form in the late 14th century by Robert Stewart, Duke of Albany (c. 1340–1420), the son of King Robert II of Scots, and Regent of Scotland from 1388 until his death. Duke Robert"s stronghold has survived relatively unchanged and complete, and the whole castle was traditionally thought of as the result of a single period of construction at this time. The castle passed to the crown in 1425, when Albany"s son was executed, and was used as a royal hunting lodge and dower house.
In the later 16th century, Doune became the property of the Earls of Moray. The castle saw military action during the Wars of the Three Kingdoms and Glencairn"s rising in the mid-17th century, and during the Jacobite risings of the late 17th century and 18th century.