 Then, in 1502 James signed the Treaty of Perpetual Peace with Henry VII.This treaty was sealed by his marriage to Henry's daughter Margaret Tudor the next year, in an event portrayed as the marriage of The Thrissil and the Rois (the thistle and rose - the flowers of Scotland and England respectively) by the great poet William Dunbar, who was then resident at James' court.James was granted the title of Defender of the Faith in 1507 by the Papal Legate at Holyrood Abbey.