England and Scotland had been in personal union since 24 March 1603; while the style, "King of Great Britain" first arose at that time, legislatively the title came into force in 1707.
She continued as queen of Great Britain and Ireland until her death.
Although Anne's great-grandfather, James VI and I (r. 1603–1625), the monarch of the Union of the Crowns, proclaimed himself "King of Great Britain", and used it on coinage, stamps and elsewhere, the Parliament of England had refused to use that style in statutory law or address.
[2][3] All of Anne's children died young, so during her reign, Parliament settled the rules of succession in the Act of Settlement 1701, by defining Sophia of Hanover (granddaughter of James VI and I) and her non-Catholic descendants as the future royal heirs.
Queen Anne and King George I were second cousins, as both were great-grandchildren of James VI and I.