After being on hiatus since 2009, Fall Out Boy returned to the studio to record their comeback album, Save Rock And Roll. The origins of this cut lay in an old song written by vocalist Patrick Stump. Bassist Pete Wentz then added lyrics about lost love and getting hurt. He told Kerrang! Magazine: "Having time away from the band, this was one of maybe two songs where I decided to write about what was going on in my life. But more in a 'what if'?' way. I couldn't have written this after Folie a Deux."
Patrick Stump told Kerrang!: "The sound of the guitars are interesting. There are a lot of things on there you might think are synthesisers that aren't. They're actually guitars, inverted in a way."
The music video is the 10th installment in The Young Blood Chronicles series, where Fall Out Boy has been kidnapped by a mysterious cult that wants to destroy music. Through torture, they manage to turn Patrick Stump evil and, after murdering guitarist Joe Trohman, he hunts down Pete Wentz in a final showdown that ends with both of them dead.
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."