Cock o'the North is a 6/8 military march, bagpipe tune and jig. The title comes from the nickname of Alexander Gordon, 4th Duke of Gordon, who in 1794 raised the 92nd Regiment of Foot, which later became the Gordon Highlanders.
The composer is unknown, but it first appeared in print in 1816 as a violin tune. It was later published in a collection of bagpipe music by Donald MacDonald in 1822, with the title of Gairm n’an Coileach (Scottish Gaelic: "The Cock’s Crow"). Some writers have noted a similarity to the 17th century English tune "Joan's Placket is Torn", which was mentioned by Samuel Pepys and is in John Playford's work, The Dancing Master. A version of the tune as a reel, from the island of Whalsay goes by the name Jumping John.
The tune has always been a march used by the Gordon Highlanders, although it did not become the official regimental march until 1933, when it replaced Hielan' Laddie. Although strongly associated with the Gordons, it was used by other Highland regiments, too.
At the Siege of Lucknow, during the Indian Mutiny of 1857, 12-year-old Drummer Ross of the 93rd Highlanders signalled the arrival of his regiment to the besieged garrison, by climbing the spire of the Shah Najaf Mosque and playing "Cock o' the North" on his bugle, while under heavy fire from the rebel forces.