 After Anne's accession, the problem of the succession re-emerged. The Scottish Parliament, infuriated that the English Parliament did not consult them on the choice of Sophia's family as the next heirs, passed the Act of Security 1704, threatening to end the personal union between England and Scotland. The Parliament of England retaliated with the Alien Act 1705, threatening to devastate the Scottish economy by restricting trade. The Scottish and English parliaments negotiated the Acts of Union 1707, under which England and Scotland were united into a single Kingdom of Great Britain, with succession under the rules prescribed by the Act of Settlement.
