Answer
James IV of Scotland commissioned extensive building work on Edinburgh Castle during his reign from 1488 to 1513. He oversaw the construction of the Great Hall, which is now one of the castle's most iconic landmarks. James IV also built a new tower house, known as the King's Tower, and he fortified the castle's defences.