James IV (17 March 1473 – 9 September 1513) was King of Scotland from 1488 through 1513. He was an effective ruler and popular king unlike his unpopular father James III of Scotland.