The Bishop of Edinburgh, or sometimes the Lord Bishop of Edinburgh is the ordinary of the Scottish Episcopal Diocese of Edinburgh. Prior to the Reformation, Edinburgh was part of the Diocese of St Andrews, under the Archbishop of St Andrews and throughout the mediaeval period the episcopal seat was St Andrew's Cathedral. The line of Bishops of Edinburgh began with the creation of the See of Edinburgh in 1633: the See was founded in 1633 by King Charles I. William Forbes was consecrated at St Giles' Cathedral as the first bishop on 23 January 1634 though he died later that year. The General Assembly of 1638 deposed David Lindsay and all the other bishops, so the next, George Wishart, was consecrated in 1662 after the Stuart Restoration.