when Domnall and Ulgric, two of their captains, were slain. John of Hexham tells us that the battle lasted three hours. 2nd Treaty of Durham After the battle, David and his surviving notables retired to Carlisle. Although the result was a defeat, it was not by any means a decisive nor even devastating defeat. David retained the bulk of his army and thus the power to go on the offensive again. The siege of Wark, for instance, which had been going on since January, continued to go on until it was captured in November. David continued to occupy Cumberland and much of Northumberland. On 26 September Cardinal Alberic of Ostia arrived at Carlisle where David had called together his kingdom's nobles, abbots and bishops. Alberic was there to investigate the controversy over the issue of the bishop of Glasgow's allegiance or non-allegiance to the archbishop of York. However, Alberic also played a role as peace-broker. With Alberic acting as a go-between, David agreed to a six-week truce which excluded the siege of Wark. Negotiations between David and Stephen continued over the winter months, but on 9 April David and Stephen's wife Matilda of Boulogne met each other at Durham and agreed a settlement. David's son Henry was given the earldom of Northumberland and was restored to the earldom of Huntingdon and lordship of Doncaster; David himself was allowed to keep Carlisle and Cumberland. However, King Stephen was to retain possession of the strategically vital castles of Bamburgh and Newcastle, and Prince Henry was to perform homage for his English lands, while David himself was to promise to "remain loyal" to Stephen at all times. The last conditions aside, this effectively fulfilled all of David's war aims. Thus, despite the surprising victory of the outnumbered English army in North Yorkshire, the series of invasions that David led into England since the death of his patron Henry at the end of 1135 had resulted in a significantly expanded kingdom. David, moreover, was no longer in practice a sub-king. So if King Henry's life and reign had brought David all his fortune, Henry's death had brought David even more. Arrival of Matilda and the renewal of conflict The settlement with Stephen was not set to last long. The arrival in England of the Empress Matilda, claimant to the English throne, gave David an opportunity to renew the conflict with Stephen. When Stephen was