On September 17, 1745, Edinburgh was occupied by Jacobites under Charles Edward Stuart (aka the Young Pretender or Bonny Prince Charlie). From the article:
"Charles launched the rising on 19 August 1745 at Glenfinnan in the Scottish Highlands, capturing Edinburgh and winning the Battle of Prestonpans in September. At a council in October, the Scots agreed to invade England after Charles assured them of substantial support from English Jacobites and a simultaneous French landing in Southern England. On that basis, the Jacobite army entered England in early November, reaching Derby on 4 December, where they decided to turn back.
Neither of Charles' promises had been fulfilled, they were a long way from Scotland and outnumbered by larger government forces; the decision was supported by the vast majority of the Jacobite leadership but caused an irretrievable split between the Scots and Charles. Despite victory at Falkirk Muir in January 1746, the Battle of Culloden in April ended the Rebellion and significant backing for the Stuart cause. Charles escaped to France but was unable to win support for another attempt and died in Rome in 1788."