St Martin’s Kirk, the oldest surviving building in the town, dating from around 1100, is reputed to be the oldest church in Scotland.
The following is a link to a PDF which is hosted by Historic Environment Scotland detailing the history of St Martin’s Kirk.