Final answer:
Queen Anne was the last monarch of the Stuart dynasty, and after her death, the throne passed to the Hanoverian dynasty.
Step-by-step explanation:
Queen Anne, who died childless in 1714, was the last monarch of the Stuart dynasty. Her reign was significant for the Act of Union, which unified the Parliaments of Scotland and England, effectively creating Great Britain.
Upon Queen Anne's death, as she had no heirs, the English Crown passed to the nearest Protestant relatives of the Stuarts, the Electors of Hanover, marking the start of the Hanoverian dynasty with George I ascending to the throne. Notably, the Stuart dynasty was preceded by the Tudor dynasty, which ended with Queen Elizabeth I's death in 1603.