The Bishop of Moray or Bishop of Elgin was the ecclesiastical head of the Diocese of Moray in northern Scotland, one of Scotland's 13 medieval bishoprics. If the foundation charter of the monastery at Scone is reliable, then the Bishopric of Moray was in existence as early as the reign of King Alexander I of Scotland (1107–1124), but was certainly in existence by 1127, when one Gregoir ("Gregorius") is mentioned as "Bishop of Moray" in a charter of king David I of Scotland. The bishopric had its seat (Latin: Cathedra) at Elgin and Elgin Cathedral, but was severally at Birnie, Kinneddar and as late as Bishop Andreas de Moravia at Spynie, where the bishops continued to maintain a palace. The Bishopric's links with Rome ceased to exist after the Scottish Reformation, but continued, saving temporary abolition between 1638 and 1661, under the episcopal Church of Scotland until the Revolution of 1688. Episcopacy in the established church in Scotland was permanently abolished in 1689. The Bishops fortified seat for over 500 years was at Spynie Palace.