 Following the Glorious Revolution, the Church of Scotland abolished the Episcopacy in 1689 and adopted a Presbyterian government.The Episcopalian remnant slowly formed the independent Scottish Episcopal Church.In the 19th century, the three dioceses were gradually merged to become the present Diocese of St Andrews, Dunkeld and Dunblane.