Margaret was exceptionally pious, her intention was to enter a religious order, but she agreed to the marriage. Despite Margaret's natural inclination the marriage to the king of Scotland lasted for some twenty-three years and produced six sons and two daughters who all survived to adulthood. Her three sons all became kings of Scotland, and her elder daughter, Matilda became queen of England when she married Henry I.