This song was written and originally recorded in 1965 by the folk singer Fred Neil. However, it was Linda Ronstadt's version that McBride grew up on. "I remember hearing Linda Ronstadt's version of it when I was a teenager," she told Country Weekly. "We wanted to do a very simple, acoustic-style arrangement and it's a little more bluesy than the original by Fred Neil."
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."