The response of the Scottish Parliament was to pass a bill in 1703, requiring that on the death of Queen Anne without issue, the three Estates of the Parliament were to appoint a Protestant successor from the descendants of the Scottish kings, but not the English successor unless various economic, political and religious conditions were met. The bill was refused Royal Assent by the Queen's Commissioner.
The following year 1704 the bill became an Act after the Scottish Parliament refused to raise taxes and sought to withdraw troops from the Duke of Marlborough's army in the War of the Spanish Succession unless Royal Assent was given.
The English Parliament retaliated with the 1705 Alien Act, threatening to cut trade and free movement between the two countries, unless negotiations opened leading either to the repeal of the Act of Security, or (as in the event happened) to the 1707 Act of Union. The end result was the Union of England and Scotland into Great Britain, as well as the Union of the Crowns.