The House of Stuart, originally spelt Stewart, was a royal house of Scotland, England, Ireland and later Great Britain. The family name comes from the office of High Steward of Scotland, which had been held by the family progenitor Walter fitz Alan (c. 1150). The name Stewart and variations had become established as a family name by the time of his grandson Walter Stewart. The first monarch of the Stewart line was Robert II, whose male-line descendants were kings and queens in Scotland from 1371, and of England, Ireland and Great Britain from 1603, until 1714. Mary, Queen of Scots, was brought up in France where she adopted the French spelling of the name Stuart. In 1503, James IV married Margaret Tudor, thus linking the royal houses of Scotland and England. Elizabeth I of England died without issue in 1603, and James IV's great-grandson (and Mary's only son) James VI of Scotland succeeded to the thrones of England and Ireland as James I in the Union of the Crowns. The Stuarts were monarchs of Britain and Ireland and its growing empire until the death of Queen Anne in 1714, except for the period of the Commonwealth between 1649 and 1660. In total, nine Stewart/Stuart monarchs ruled Scotland alone from 1371 until 1603, the last of whom was James VI, before his accession in England. Two Stuart queens ruled the isles following the Glorious Revolution in 1688: Mary II and Anne. Both were the Protestant daughters of James VII and II by his first wife Anne Hyde and the great-grandchildren of James VI and I. Their father had converted to Catholicism and his new wife gave birth to a son in 1688, who was to be brought up as a Roman Catholic; so James was deposed by Parliament in 1689, in favour of his daughters. However, neither daughter had any children who survived to adulthood, so the crown passed to the House of Hanover on the death of Queen Anne in 1714 under the terms of the Act of Settlement 1701 and the Act of Security 1704. After the loss of the throne, the descendants of James VII and II came to be known as the Jacobites and continued for several generations to attempt to reclaim the Scottish and English (and later British) throne as the rightful heirs, though since the early 19th century there have been no more active claimants