The Glorious Revolution in Scotland refers to the Scottish element of the 1688 Glorious Revolution, in which James VII was replaced by his daughter Mary II and her husband William II as joint monarchs of Scotland and England. Prior to 1707, the two kingdoms shared a common monarch but were separate legal entities, so decisions in one did not bind the other. In both countries, the Revolution confirmed the primacy of Parliament over the Crown, while the Church of Scotland was re-established as a Presbyterian rather than Episcopalian polity.