King Alexander III of Scotland died in 1286, leaving his three-year-old granddaughter Margaret, Maid of Norway, as his heir.
Two days later, in Upsettlington, the Guardians of the Realm and the leading Scottish nobles gathered to swear allegiance to King Edward I as Lord Paramount.
On 12 August, he signed a writ that required the collection of all documents that might concern the competitors' rights or his own title to the superiority of Scotland, which was accordingly executed.
In 1294, Edward summoned John Balliol to appear before him, and then ordered that he had until 1 September 1294 to provide Scottish troops and funds for his invasion of France.
On his return to Scotland, John held a meeting with his council and after a few days of heated debate, plans were made to defy the orders of Edward I.
A few weeks later a Scottish parliament was hastily convened and 12 members of a war council (four earls, barons, and bishops, respectively) were selected to advise King John.
Another treaty with King Eric II of Norway was hammered out, in which for the sum of 50,000 groats he would supply 100 ships for four months of the year, so long as hostilities between France and England continued.
In response, King John Balliol summoned all able-bodied Scotsmen to bear arms and gather at Caddonlee by 11 March.
The war began in earnest with Edward I's brutal sacking of Berwick in March 1296, followed by the Scottish defeat at the Battle of Dunbar and the abdication of John Balliol in July.
It is said by some sources that Wallace travelled to France and fought for the French King against the English during their own ongoing war while Bishop Lamberton of St Andrews, who gave much support to the Scottish cause, went and spoke to the pope.
After another campaign in 1303/1304, Stirling Castle, the last major Scottish-held stronghold, fell to the English, and in February 1304, negotiations led to most of the remaining nobles paying homage to Edward and to the Scots all but surrendering.
After being defeated in the Battle of Methven, he was driven from the Scottish mainland as an outlaw as Edward I declared that his supporters would be given no quarter, and his wife Queen Elizabeth, daughter Marjorie and younger sisters Christina and Mary were captured by the English.
Randolph successfully persuaded Pope John to recognise Robert as King of Scots, a major diplomatic coup.
Repeated invasions of the north of England by Robert or his war leaders, culminating in the Battle of Stanhope Park, in which the English king was nearly captured, forced Edward III to sign the Treaty of Edinburgh–Northampton on 1 May 1328.
After Robert the Bruce's death, King David II was too young to rule, so the guardianship was assumed by Thomas Randolph, Earl of Moray.
He agreed to turn a blind eye to an invasion by sea, but made it clear that he would disavow them and confiscate all their English lands should Balliol and his friends fail.
The news of their advance had preceded them, and, as they marched towards Perth, they found their route barred by a large Scottish army, mostly of infantry, under the new Guardian.
Beaumont made use of the same tactics that the English would make famous during the Hundred Years' War, with dismounted knights in the centre and archers on the flanks.
In October, Sir Archibald Douglas, now Guardian of Scotland, made a truce with Balliol, supposedly to let the Scottish Parliament assemble and decide who their true king was.
In November, Edward III invaded again, but he accomplished little and retreated in February 1335 due primarily to his failure to bring the Scots to battle.
At this time, the Scots followed a plan of avoiding pitched battles, depending instead on minor actions of heavy cavalry – the normal practice of the day.
Following Edward's return to England, the remaining leaders of the Scots resistance chose Sir Andrew Murray as Guardian.
Prompted by this invasion, Philip VI of France announced that he intended to aid the Scots by every means in his power, and that he had a large fleet and army preparing to invade both England and Scotland.
Although Edward III invaded again, he was becoming more anxious over the possible French invasion, and by late 1336, the Scots had regained control over virtually all of Scotland and by 1338 the tide had turned.
While "Black Agnes", Countess-consort Dunbar and March, continued to resist the English laying siege to Dunbar Castle, hurling defiance and abuse from the walls, Scotland received some breathing space when Edward III claimed the French throne and took his army to Flanders, beginning the Hundred Years' War with France.
Following this, Strathbogie moved to lay siege to Kildrummy Castle, held by Lady Christian Bruce, sister of the late King Robert and wife of the Guardian, Andrew de Moray.
In 1346, after more Scottish raids, Philip VI appealed for a counter-invasion of England in order to relieve the English stranglehold on Calais.
After a period of convalescence, he was imprisoned in the Tower of London, where he was held prisoner for eleven years, during which time Scotland was ruled by his nephew, Robert Stewart, 7th High Steward.
Heavy taxation was needed to provide funds for the ransom, which was to be paid in instalments, and David alienated his subjects by using the money for his own purposes.
In 1363, David went to London and agreed that should he die childless, the crown would pass to Edward (his brother-in-law) or one of his sons, with the Stone of Destiny being returned for their coronation as King of Scots.