Built in 1511 for King James IV, the Great Hall at Edinburgh Castle is where state functions and banquets were held. Although King James IV was killed in the Battle of Flodden shortly after its construction, the hall now displays weaponry and armor reflecting the castle's military history.