The king named the Scottish warship "Margaret" after her. The treaty of 1502, far from being perpetual, barely survived the death of Henry VII in 1509. His successor, the young Henry VIII, had little time for his father's cautious diplomacy, and was soon heading towards a war with France, Scotland's historic 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, James V, for as long as she remained a widow.