The Second War of Scottish Independence began in 1333 when Edward III of England did not accept the 1328 Treaty of Northampton any more, under which England recognised the legitimacy of the dynasty established by Robert Bruce. Edward was determined to support the claim of Edward Balliol, the son of the former king, John Balliol, over David II, Bruce's son and heir. Balliol had ruled in Scotland for a short time in the autumn of 1332, but was thrown out of the country later in the year. The war itself lasted until 1357, when David II was released from English captivity. English involvement in Scotland was also one of the factors that lead to the outbreak of the Hundred Years' War with France in 1337.