On June 12, 1701, the Act of Settlement gave the English crown to Sophia, Princess of Hanover. From the article:
"The Act of Settlement
The Act of Settlement of 1701 was designed to secure the Protestant succession to the throne, and to strengthen the guarantees for ensuring a parliamentary system of government.
The Act also strengthened the Bill of Rights (1689), which had previously established the order of succession for Mary II’s heirs.
Mary’s father, James II, had fled England in 1688 during events described as the ‘Glorious Revolution’. James’s Roman Catholic sympathies and belief in the divine right of the Crown, resulted in disgruntled parliamentarians offering the throne to his eldest Protestant daughter, Mary. She accepted it on condition that she could reign jointly with her Dutch husband, William of Orange, who became William III.
From this time onwards the Bill of Rights proved to be of fundamental importance for the evolution of constitutional monarchy. The Act of Settlement reinforced the Bill of Rights, in that it strengthened the principle that government was undertaken by the Sovereign and his or her constitutional advisers (i.e. his or her Ministers), not by the Sovereign and any personal advisers whom he or she happened to choose.
Although the Bill of Rights had established the order of succession with the heirs of Mary II, Anne and William III, neither of James II’s daughters had surviving heirs, casting uncertainty on the future of succession. Mary had died of smallpox in 1694, aged 32, and by 1700 William was dying. Anne's only surviving child (out of 17 children), the Duke of Gloucester, died that same year at the age of 11. Without a confirmed heir the decision was made by Parliament to ensure that the succession of future sovereigns remained within the Protestant faith.
According to the 1701 Act, succession to the throne went to Princess Sophia, Electress of Hanover (James I's granddaughter) and her Protestant heirs. However, Sophia died before Queen Anne, therefore the succession passed to her son, George, Elector of Hanover, who in 1714 became King George I. The act was later extended to Scotland as a result of the Treaty of Union enacted in the Acts of Union of 1707.
The Act also laid down the conditions under which the Crown could be held. No Roman Catholic, nor anyone married to a Roman Catholic, could hold the Crown. The Sovereign now had to swear to maintain the Church of England (and after 1707, the Church of Scotland).
The Act of Settlement not only addressed the dynastic and religious aspects of succession, it also further restricted the powers and prerogatives of the Crown.
Under the Act, parliamentary consent had to be given for the Sovereign to engage in war or leave the country, and judges were to hold office on good conduct and not at Royal pleasure - thus establishing judicial independence.
The Succession to the Crown Act (2013) amended the provisions of the Bill of Rights and the Act of Settlement to end the system of male primogeniture, under which a younger son can displace an elder daughter in the line of succession. The Act applies to those born after 28 October 2011. The Act also ended the provisions by which those who marry Roman Catholics are disqualified from the line of succession. The changes came into force in all sixteen Realms in March 2015)."