It was then that Walter followed David up to the Kingdom of Scotland, where he was granted lands in Renfrewshire and the title for life of Lord High Steward. The next monarch of Scotland, Malcolm IV, made the High Steward title a hereditary arrangement. While High Stewards, the family were based at Dundonald, South Ayrshire between the 12th and 13th centuries. The sixth High Steward of Scotland, Walter Stewart (1293–1326), married Marjorie, daughter of Robert the Bruce, and also played an important part in the Battle of Bannockburn gaining further favour. Their son Robert was heir to the House of Bruce, the Lordship of Cunningham and the Bruce lands of Bourtreehill; he eventually inherited the Scottish throne when his uncle David II died childless in 1371. In 1503, James IV attempted to secure peace with England by marrying King Henry VII's daughter, Margaret Tudor. The birth of their son, later James V, brought the House of Stewart into the line of descent of the House of Tudor, and the English throne. Margaret Tudor later married Archibald Douglas, 6th Earl of Angus, and their daughter, Margaret Douglas, was the mother of Henry Stuart, Lord Darnley. In 1565, Darnley married his half-cousin Mary, Queen of Scots, the daughter of James V. Darnley's father was Matthew Stewart, 4th Earl of Lennox, a member of the Stewart of Darnley branch of the House. Lennox was a descendant of Alexander Stewart, 4th High Steward of Scotland, also descended from James II, being Mary's heir presumptive. Thus Darnley was also related to Mary on his father's side and because of this connection, Mary's heirs remained part of the House of Stuart. Following John Stewart of Darnley's ennoblement for his part at the Battle of Baugé in 1421 and the grant of lands to him at Aubigny and Concressault, the Darnley Stewarts' surname was gallicised to "Stuart". Both Mary, Queen of Scots, and Lord Darnley had strong claims on the English throne, through their mutual grandmother, Margaret Tudor. This eventually led to the accession of the couple's only child James as King of Scotland, England, and Ireland in 1603. However, this was a Personal Union, as the three Kingdoms shared a monarch, but had separate governments, churches, and institutions.