Answer
James IV reigned as King of Scotland for 25 years from 1488 to 1513. He was the second son of James III, but succeeded to the throne after his father was killed in battle. James IV was a skilled warrior and a great patron of the arts. He was also responsible for the construction of many important buildings, including Stirling Castle and Linlithgow Palace.