England retook Berwick the day after the Battle of Halidon Hill in 1333. In October 1357, a treaty was signed at Berwick by which the Scottish estates undertook to pay 100,000 marks as a ransom for David II of Scotland, who had been taken prisoner at the Battle of Neville's Cross on 17 October 1346. In 1461, Berwick was ceded back to Scotland by Margaret of Anjou on behalf of her husband, Henry VI, in return for help against the Yorkists during the Wars of the Roses.