Edward Balliol, son of King John Balliol—assisted by the English and those Scottish nobles who had been disinherited by Robert I—invaded Scotland inflicting heavy defeats on the Bruce party on 11 August 1332 at Dupplin Moor and Halidon Hill on 19 July 1333. Robert, who had fought at Halidon joined his uncle, King David in refuge in Dumbarton Castle. David escaped to France in 1334 and parliament, still functioning, appointed Robert and John Randolph, 3rd Earl of Moray as joint Guardians of the kingdom. Randolph was captured by the English in July 1335 and in the same year Robert submitted to Balliol bringing about the removal of his guardianship. The office was reinstated in 1338 and Robert held it until David's return from France in June 1341. Hostilities continued and Robert was with David at the Neville's Cross on 17 October 1346 and either escaped or fled the field but David was captured and remained a prisoner until he was ransomed in October 1357.