The melody of this song dates back to the early 19th century, and it's actually a Methodist hymn tune called Cranbrook, composed by Thomas Clark. The lyrics were said to have originated from a Halifax church choir, who collaboratively created it on an outing to Ilkley Moor, West Yorkshire.