In 1290, Edward's father had confirmed the Treaty of Birgham, in which he promised to marry his six year-old son to the young Margaret of Norway, who had a potential claim to the crown of Scotland. Margaret died later that year, bringing an end to the plan. Edward's mother, Eleanor, died shortly afterwards, followed by his grandmother, Eleanor of Provence. Edward I was distraught at his wife's death and held a huge funeral for her; his son inherited the County of Ponthieu from Eleanor. Next, a French marriage was considered for the young Edward, to help secure a lasting peace with France, but war broke out in 1294. The idea was replaced with the proposal of a marriage to a daughter of Guy, Count of Flanders, but this too failed after it was blocked by King Philip IV of France.