The Act of Settlement (12 & 13 Will. 3. c. 2) is an act of the Parliament of England that settled the succession to the English and Irish crowns to only Protestants, which passed in 1701. More specifically, anyone who became a Roman Catholic, or who married one, became disqualified to inherit the throne. This deposed the remaining descendants of Charles I, other than his Protestant granddaughter Anne, as the next Protestant in line to the throne was Sophia of Hanover. Born into the House of Wittelsbach, she was a granddaughter of James VI and I from his most junior surviving line, with the crowns descending only to her non-Catholic heirs. Sophia died less than two months before Queen Anne, and Sophia's son succeeded to the throne as King George I, starting the Hanoverian dynasty in Great Britain and Ireland.
The Act of Supremacy 1558 (1 Eliz. 1. c. 1) had confirmed the independence of the Church of England from Roman Catholicism under the English monarch. One of the principal factors which contributed to the Glorious Revolution was the perceived assaults made on the Church of England by King James II, a Roman Catholic, who was deposed in favour of his Protestant daughter Mary II and her husband William III. The need for this Act of Settlement was prompted by the inability of William and Mary, as well as of Mary's Protestant sister (the future Queen Anne), to produce any surviving children, and by the perceived threat posed by the pretensions to the throne by remaining Roman Catholic members of the House of Stuart.