The title Bonny Dundee for the tune appears in an appendix to John Playford's 1688 edition of The Dancing Master, an English publication.
Robert Burns rewrote the second verse of the original, so that the latter lines were "May Heaven protect my Bonnie Scots laddie, and send him safe hame to his baby and me."
After trying to influence the Convention of Estates of Scotland on James's behalf, at some danger to himself, he led his cavalry out of Edinburgh to carry on the struggle in the field and was killed at the moment of victory in the battle of Killiecrankie (1689).
The story mentions one of Claverhouse's troopers "humming the lively Scottish air, 'Between Saint Johnstone and Bonny Dundee, I'll gar ye be fain to follow me'."
[11]Scott sent a copy of the verses to his daughter-in-law Jane, mentioning that his great-grandfather had been among Claverhouse's followers and describing himself as "a most incorrigible Jacobite".
[13] The poem was first published in a miscellany, The Christmas Box (1828-9), and then included as a song in Scott's unperformed play The Doom of Devorgoil (1830).
The version in The Beggar's Opera differs most widely, with most of the dotted rhythms smoothed out into a regular succession of crotchets.
This later setting, with its cheerful major key and cantering rhythm, suits both the spirit of Scott's lines and their metre, and makes an excellent cavalry march.
[20] It has been suggested that the melody comes from a piano piece called The Band at a Distance, and that it was Dolby who first combined this tune with Scott's words.
[21] A score for piano or harp called The Band at a Distance, by Nicolas-Charles Bochsa, was published by Walker & Son c. 1830, but has no resemblance to Bonnie Dundee.
[25] From Chapter IX of Through the Looking-Glass, 1871: William McGonagall returned to the idea of praising the town in Bonnie Dundee in 1878.
The opening lines quoted below exemplify McGonagall's inimitable style:[26] In 1892 there was a protest in the Highlands of Scotland against the Free Church of Scotland's Declaratory Act, which modified the denomination's adherence to the orthodoxy of the Westminster Confession of Faith and "abandoned the whole system of thought for which it stood.
Murdoch Macaskill of Dingwall, though he did not in the end separate with the two ministers from Syke who created the Free Presbyterian Church of Scotland in 1893.
This would be the bloodiest day in American history and while the battle was indecisive, Lee was forced to abandon any hope of continuing the campaign.
During the final phase of the Second Boer War, Afrikaner residents of Winburg taunted the local British garrison with a parody of Bonnie Dundee, which was typically sung in English.