 The parish church, dedicated to Saint Mary, had been founded by 1238.The original building was replaced by a Gothic structure in 1426, and was in turn replaced in 1630.It has been described as ""the last specimen of early church architecture in Scotland"".