David 's sister Marjory had married Walter the Steward , and their son was the first of the long line of Stewart ( later spelled Stuart ) monarchs who would reign over Scotland and , subsequently , Great Britain until the Glorious Revolution of 1688 .
The Stewart dynasty was later rewritten as Stuart to be more phonetically correct .