Edward Balliol, with support from Edward III of England fought against David, so that he could become king. He defeated David at the Battle of Dupplin on 12 August 1332. Balliol was crowned king, and in July 1333, the nine year old David and his queen were sent to France for their safety. In June 1341 he came back and began to rule. In 1346 he invaded England, but was defeated and taken prisoner at the Battle of Neville's Cross on 17 October 1346, and remained in England for eleven years, living mainly in London and at Odiham in Hampshire. In October 1357 he was allowed to go back to Scotland for a payment of 100,000 marks. The money was never paid completely. 