James IV of Scotland but from all of Great Britain, to be killed in battle. James was the son of King James III and Margaret of Denmark, born in Holyrood Abbey. As heir apparent to the Scottish crown, he became Duke of Rothesay. In 1474, his father arranged his betrothal to the English princess Cecily of York, daughter of Edward IV of England. His father James III was not a popular king, facing two major rebellions during his reign, and alienating many members of his close family, especially his younger brother Alexander Stewart, Duke of Albany. James III's pro-English policy was also unpopular, and
Melrose Abbey attacked by the army of Edward II and much of the abbey was destroyed. It was rebuilt by order of King Robert the Bruce, with Sir James Douglas being principal auditor of finance for the project. In 1385 the abbey was burned by the army of Richard II of England, as he forced the army of Robert II of Scotland back to Edinburgh. It was rebuilt over a period of about 100 years—construction was still unfinished when James IV visited in 1504. From 1541 the abbacy was held by a series of commendators. In 1544, as English armies raged across