Robert I died in 1329, leaving his five-year-old son to reign as David II. During his minority, the country was ruled by a series of governors, two of whom died as a result of a renewed invasion by English forces from 1332. This was on the pretext of restoring Edward Balliol, son of John Balliol, to the Scottish throne, thus starting the Second War of Independence. Despite victories at Dupplin Moor (1332) and Halidon Hill (1333), in the face of tough Scottish resistance led by Sir Andrew Murray, the son of Wallace's comrade in arms, successive attempts to secure Balliol on the throne failed. Edward III lost interest in the fate of his protege after the outbreak of the Hundred Years' War with France. In 1341 David was able to return from temporary exile in France. In 1346 under the terms of the Auld Alliance, he invaded England in the interests of France, but was defeated and taken prisoner at the Battle of Neville's Cross on 17 October 1346 and would remain in England as a prisoner for 11 years. His cousin Robert Stewart ruled as guardian in his absence. Balliol finally resigned his claim to the throne to Edward in 1356, before retiring to Yorkshire, where he died in 1364.