Beverly told Uncut magazine that this song is about her late husband, the singer-songwriter John Martyn. She added: "There is a verse about our son, who is a bit wild. He didn't have a good father's hand, John didn't teach good things. Another line is about Davy Graham, John's hero, and Bobby (Dylan), who was mine."
ABBA's Bjorn Ulvaeus and Benny Andersson conceived "Dancing Queen" as a dance song with the working title "Boogaloo," drawing inspiration from the 1974 George McCrae disco hit "Rock Your Baby." Their manager Stig Anderson came up with the title "Dancing Queen."