The independent parishes of St Andrews and Lhanbryd were united in 1782. The kirk session sat with the Presbytery of Elgin and later of Moray.