Rita Ora collaborated with will.i.am of the Black Eyed Peas on this track. "That's a fall in love, 'I don't want a one-night stand, I want to be in love with you' kind of song," she told Capital FM. "Will.i.am and I went into the studio and we just completely got in the zone and recorded it and it just came out great."
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."