Although the post was never formally abolished, governors ceased to be appointed after the death in 1876 of Henry Dundas, 3rd Viscount Melville.
[1] However, since 2015, this is no longer the case, with General Officer, Scotland and Governor of Edinburgh Castle being two separate appointments.
The castle was in English hands from 1291 to 1314, during the Wars of Scottish Independence.
Following the Castle's recapture by the Scots under Thomas Randolph, 1st Earl of Moray in 1314, it was slighted and unused until the English returned in 1333.
The castle was again recaptured by the Scots under Sir William Douglas in 1341.