The Kingdom of Great Britain, officially Great Britain, was a sovereign state in Western Europe from 1707 to the end of 1800. The state was created by the 1706 Treaty of Union and ratified by the Acts of Union 1707, which united the Kingdom of England (including Wales) and the Kingdom of Scotland to form a single kingdom encompassing the whole island of Great Britain and its outlying islands, with the exception of the Isle of Man and the Channel Islands. The unitary state was governed by a single parliament at the Palace of Westminster, but the distinct legal systems—English law and Scots law—remained in use, as did distinct educational systems and religious institutions, namely the Church of England and the Church of Scotland remaining as the national churches of England and Scotland respectively.
The formerly separate kingdoms had been in personal union since the Union of the Crowns in 1603 when James VI of Scotland became King of England and King of Ireland. Since the reign of James, who had been the first to refer to himself as "king of Great Britain", a political union between the two mainland British kingdoms had been repeatedly attempted and aborted by both the Parliament of England and the Parliament of Scotland. Queen Anne (r. 1702–1714) did not produce a clear Protestant heir and endangered the line of succession, with the laws of succession differing in the two kingdoms and threatening a return to the throne of Scotland of the Roman Catholic House of Stuart, exiled in the Glorious Revolution of 1688.