The treaty of 1502, far from being perpetual, barely survived the death of Henry VII in 1509. His successor, the young and aggressive Henry VIII, had little time for his father's cautious diplomacy, and was soon heading towards a war with
France, Scotland's ancient ally. In 1513 James invaded England to honour his commitment to the
Auld Alliance, only to meet death and disaster at the
Battle of Flodden. Margaret had opposed the war, but was still named in the royal will as
regent for the infant king, for as long as she remained a widow.
Parliament met at
Stirling not long after Flodden, and confirmed Margaret in the office of Regent. A woman was rarely welcome in a position of supreme power, and Margaret was the sister of an enemy king, which served to compound her problems. Before long a pro-French party took shape among the nobility, urging that she should be replaced by
John Stewart, 2nd Duke of Albany, the closest male relative to the infant princes, and now third in line to the throne. Albany, who had been born and raised in France, was seen as a living representative of the Auld Alliance, in contrast with the pro-English Margaret.
It is possible to sympathise with Margaret and the almost impossible position she found herself in, with opposition to the Regency extending right into the royal council itself. She, nevertheless acted calmly and with some degree of political skill. By July 1514 she had managed to reconcile the contending parties, and Scotland — along with France — concluded peace with England that same month. But in her search for political allies amongst the fractious Scottish nobility she took a fatal step, allowing good sense and prudence to be overruled by emotion and magnetism.
In seeking allies Margaret turned more and more to the powerful
House of Douglas. She found herself particularly attracted to
Archibald Douglas, 6th Earl of Angus, whom even his uncle, the cleric and poet
Gavin Douglas, called a "young witless fool." Without considering the consequences of the match Margaret and Douglas were secretly married in the parish church of Kinnoull, near
Perth, on
6 August. Not only did this alienate the other noble houses but it immediately strengthened the pro-French faction on the council, headed by
James Beaton, Archbishop of Glasgow. By the terms of the late king's will she had sacrificed her position; before the month was out she was obliged to consent to the appointment of Albany. In September the
Privy Council decided that she had also forfeited her rights to the supervision of her sons, whereupon in defiance she and her allies took the princes to
Stirling Castle.
Albany arrived in Scotland in May 1515, and was finally installed as Regent in July. His first task was to get custody of James and Alexander, politically essential for the authority of the regency. Margaret, after some initial defiance, surrendered at Stirling in August. With the princes in the hands of their uncle, the
Queen Dowager, now expecting a child by Angus, retired to
Edinburgh. For some time her brother had been urging her to flee to England with her sons; but she had steadily refused to do so, fearing such a step might lead to James's loss of the crown.
With no further interest in the matter she obtained permission to go to
Linlithgow whence she escaped to the border. She was received by
Lord Dacre, Henry's warden of the marches, and taken to
Harbottle Castle. Here in early October she gave birth to
Margaret Douglas, the future
countess of Lennox and mother of
Henry Stuart, Lord Darnley, one day to be the second husband of Mary Queen of Scots. While still in the north of England she learned of the death of Alexander. Dacre hinted that Albany — cast in the role of
Richard III — was responsible though Margaret, even in her vulnerable state, refused to accept this, saying that if he really aimed at the throne for himself the death of James would have suited his purpose better. It was also at this time that she at last began to get the measure of Angus, who, with an eye on his own welfare, returned to Scotland to make peace with the Regent, "which much made Margaret to muse." When Henry learned that Angus would not be accompanying his sister to London he said "Done like a Scot." Angus, however, should not be judged too harshly. All of his power, wealth and influence was in Scotland; to abandon the country would mean possible forfeiture for treason. In this regard he would have had before him the example of his kinsman
James Douglas, 9th Earl of Douglas, who fled to England the previous century, living out his life as a landless mercenary.