When Margaret's first cousin King Inge the Younger died, Magnus claimed the throne as the eldest grandson of King Inge the Elder and reigned as King Magnus I of Sweden.
Upon King Inge the Younger's demise, Magnus inherited the Swedish throne by claiming it as the eldest grandson of King Inge the Elder. He reigned as King Magnus I of Sweden.