Answer:
Her father absented himself during the 'glorious revolution' and was deemed to have abdicated. Anne's brother-in-law and her sister (William and Mary) ascended the throne. Wiliam and Mary died without issue leaving Anne as sole survivor of the House of Stuart to become monarch.