King Alexander III died, without any children or heirs, and so Scotland was faced with the problem of finding a new ruler
Both of Alexanders sons died, and his daughter died during childbirth. his wife was thought to be pregnant but that was false. Luckily his daughter had a daughter, although she was half Norwegian, she was their choice.
I will help you, but only if your new king swears loyalty to me.
We cannot promise that, but when he becomes king he will.
The guardians of the realm will rule until Margaret arrives, A regent would be put in charge until Margaret is old enough, and they will find her the perfect husband
hahhah! I win the crown!
Margaret dies on the way over because of extreme seasickness.
The council turn to Edward for help to choose a new Scottish ruler. Out of 14 candidates it is narrowed down to two.
Robert Bruce and John Balliol. John gets the crown as the law of primogeniture sates that the crown goes to the first born child, and as johns mother was born before Roberts' mother, her sister, John in first in line to get the crown.