Following the death of King Alexander III of Scotland, the country faced a succession crisis as he had no immediate heirs. His only descendant was his infant granddaughter Margaret, who lived in Norway. Though she was intended to inherit the throne, many Scottish nobles opposed having a female or foreign ruler. This led to civil war between noble families who wanted the crown for themselves. To prevent war, Scotland agreed that Margaret would marry Prince Edward of England's son, but she died en route to Scotland. This sparked renewed conflict until the Scottish nobles granted Edward I of England the role of choosing Scotland's new king from among 13 claimants, though this gave him power over Scotland. He chose John Balliol, but Edward continued asserting control