At last a burgess of Berwick, Peter (or Simon) de Spalding, exasperated by Horsley's supercilious harshness—bribed with ready money and promise of lands, the Lanercost chronicler says; corrupted by Douglas, says John of Tynmouth—entered into communication with the Marshal (or the Earl of March) for the betrayal of the town. By direction of the King, the Marshal (or March) ambushed at night in Duns Park, where he was joined by Randolph and Douglas. Advancing on foot, the Scots planted their ladders unperceived and scaled the wall at the point where Simon was in charge. The temptation to plunder upset the order of attack, two-thirds of the party scattering themselves over the town, breaking houses and slaying men. The opposition of the town's people was easily overcome, but when the garrison sallied, Randolph and Douglas were dangerously weak. Sir William de Keith, however, exerted himself conspicuously, as became a brand-new knight, in collecting the Scots, and after very hard fighting the garrison was driven in. Bruce presently came up with large reinforcements, but the castle held out tenaciously, and surrendered only to famine. The town was taken on March 28 (Fordun), or April 2 (Lanercost); the castle held out gallantly till past the middle of July, and even then Horsley marched out his famished garrison with the honours of war. Bruce installed as warden Sir Walter the Steward. Peter of Spalding, says John of Tynmouth, proved troublesome in insisting upon his promised reward; and, on an accusation of plotting against the life of King Robert, was put to death. The allegation recalls the case of Sir Peter de Lubaud.

Edward was extremely incensed at the Mayor and burgesses of Berwick, who had undertaken, for 6000 marks, to defend the town for a year from June 15, 1317. He ascribed the loss of it to their carelessness, and in the middle of April he ordered that their goods and chattels, wheresoever found, should be confiscated, and that such of them as had escaped into England should be imprisoned. On June 10, 1318, he summoned his army to meet him at York on July 26, to proceed against the Scots.

Meantime the Scots were proceeding with vigour against him. For soon after the capture of Berwick town, Bruce detached a strong force to ravage the northern counties. They laid waste Northumberland to the gates of Newcastle, starved the castles of Harbottle and Wark into surrender, and took Mitford Castle by stratagem. They sold immunity to the episcopate of Durham, excepting Hartlepool, which Bruce threatened to burn and destroy because some of its inhabitants had captured a ship freighted with his 'armeours' and provisions. Northallerton, Ripon, Boroughbridge, Knaresborough, Otley and Skipton were guiding-points in the desolating track of the invaders. Ripon and Otley suffered most severely, and Ripon paid 1000 marks for a cessation of destruction. Fountains Abbey also paid ransom; Bolton Abbey was plundered; Knaresborough Parish Church bears to this day the marks of the fire that burnt out the fugitives. The expedition returned to Scotland laden with spoils, and bringing numerous captives and great droves of cattle. The Archbishop of York postponed misfortune by being too late with measures of resistance. But he energetically excommunicated the depredators, all and sundry.

On hearing of Bruce's reception of the envoys, the Pope had authorised the Cardinals, on December 29, to put in execution the two Bulls of excommunication prepared in the previous March. The Cardinals, however, would seem to have delayed. On June 28, 1318, when the Pope heard of the woeful adventures of Adam de Newton and of the capture of Berwick despite his truce, he ordered them to proceed. For Bruce, he said, had 'grievously' (dampnabiliter) 'abused his patience and long-suffering.' In September accordingly they excommunicated and laid under interdict Bruce himself, his brother Edward, and all their aiders and abettors in the invasion of England and Ireland. 'But,' says the Lanercost chronicler, 'the Scots cared not a jot for any excommunication, and declined to pay any observance to the interdict.' In October, Edward followed up his diplomatic success by pressing hard for the deposition of the Bishop of St Andrews, but the Pope easily found good technical pleas whereby to avoid compliance.

The Irish expedition came to a disastrous close on the fatal field of Faughart, near Dundalk, on October 5 (or 14), 1318. A vastly superior English army, under Sir John de Bermingham, moved against the Scots; and King Edward the Bruce, wrathfully overruling the counsels of his staff, disdaining to wait for the approaching reinforcements from Scotland, and despising the hesitations of his Irish allies, dashed against the tremendous odds with his native impetuosity.

'Now help quha will, for sekirly
This day, but mair baid, fecht vill I.
Sall na man say, quhill I may dre,
That strynth of men sall ger me fle!
God scheld that ony suld vs blame
That we defoull our nobill name!'

Barbour gives the numbers at 2000 against 40,000, no doubt with generous exaggeration. King Edward fell at the first onset, killed by a gigantic Anglo-Irish knight, Sir John de Maupas, who was found lying dead across his body. Sir John the Steward, Sir John de Soulis, and other officers were slain. Barbour tells how Sir Philip de Mowbray, stunned in action, was led captive by two men towards Dundalk; how he recovered his senses sufficiently to realise his position, shook off his captors, drew his sword and turned back towards the battle-field, and how he cleared a hundred men out of his way as he went. John Thomasson, the leader of the Carrick men, took him in charge, and hurried him away towards Carrickfergus. But the brave defender of Stirling had received a mortal wound. King Edward's body was dismembered, the trunk buried at Faughart, and the limbs exposed in Irish towns held by the English. The head is said to have been sent to England to Edward; but Barbour tells how King Edward the Bruce had that day exchanged armour with Gilbert the Harper, as he had done before at Connor, and how it was Gilbert's head that had been mistakenly struck off and despatched to England. The remnants of the Scots army reached Carrickfergus with the utmost difficulty, and hastily took ship for Scotland, where the news was received with great lamentation. Bermingham was created Earl of Louth for his victory. It is curious to observe that his wife was a sister of the Queen of Scotland.

The death of Edward Bruce disturbed the settlement of the succession, which was again brought under consideration of Parliament, on December 3, at Scone. Robert, the son of Sir Walter the Steward and the late Princess Marjory, was recognised as heir, with a proviso saving the right of any subsequent male issue of King Robert. In case of a minority, Randolph was to be guardian; and failing Randolph, Douglas.

No sooner had the sentences of excommunication been promulgated than King Robert took measures to have them revoked or mitigated. He had good friends at Rome. Letters from these had fallen accidentally into the hands of Edward, who, on January 12, 1318–19, sent them to the Pope by the hands of Sir John de Neville, and asked His Holiness to deal suitably with the writers. A few days before, he had urged the two Cardinals to press the Pope to reject the applications that he heard were being made on behalf of Bruce and his friends, and stated that he would presently send envoys to the Pope himself. Neville was graciously received, and the Pope ordered the Scots and their abettors at his court to prison. On April 24, the Pope granted Edward's request for a Bull permitting him to negotiate for peace with the Scots notwithstanding their excommunication. But the pressure was not all on one side; the nuncios in England boldly exercised their powers, and had often to be restrained even by royal menace, while every ecclesiastical office was steadily claimed for the papal nominee. Bruce appears to have deemed it prudent to raise little formal objection to the papal appointment of ecclesiastics up and down Scotland, though some of them evidently had but a seat of thorns.

From March to May there was an interesting correspondence between Edward and some minor states and municipalities on the other side of the North Sea, whose people, Edward understood, had harboured, or even assisted, his Scots enemies. They all denied the allegation. The statesmanlike answer of the Count of Flanders, however, is peculiarly notable. 'Our land of Flanders,' he wrote, 'is common to all men, of whatever country, and freely open to all comers; and we cannot deny admission to merchants doing their business as they have hitherto been accustomed, for thereby we should bring our land to desolation and ruin.'