The governor of Edinburgh Castle, also sometimes known as the Keeper or Captain, had overall control of the royal castle of Edinburgh, Scotland. The governor was usually assisted by a Deputy-Governor and a Constable, the latter being under the command of the Lord High Constable of Scotland.
The governor had lodgings within the castle, with a governor's house being built in 1742. Although the post was never formally abolished, governors ceased to be appointed after the death in 1876 of Henry Dundas, 3rd Viscount Melville.
The office was revived in 1936 as an honorary title for the General Officer Commanding of Scottish Command.[1] However, since 2015, this is no longer the case, with General Officer, Scotland and Governor of Edinburgh Castle being two separate appointments.