1290- death of Dervoguilla of Galloway. Dervoguilla was the mother of John Balliol who was king of Scotland for four years after the death of the Maid of Norway. John claimed the throne through his mother. Dervoguilla was the maternal great-granddaughter of David I of Scotland. Her grandfather who was Earl of Huntington was brother of Malcolm IV and William I. On the death of her elder sons, John inherited his mothers claim.
https://en.m.wikipedia.org/wiki/Dervorguilla_of_Galloway
Her father had no male heirs and by Gaeoic custom she inherited with her sisters.
She is actually ancestress of two of the prominent families in the war for Scottish succession. Her son of course. And her daughter Eleanor married John Comyn. John Comyn and his family were a driving force behind his brother in law coming to the throne. They had their own claim to the throne as descended from Duncan III. Eleanor's son John III was guardian of Scotland after Wallace, but was stabbed to death by Robert the Bruce, who he was a contender for the throne against. John III was married to Joan de Valence, a niece of Henry III. Joan's father and Henry were half brothers, her father William was the son of Isabella of Angeloume from her second marriage. Therefore was half cousin to Edward I.