In March or April 2022,
Mark Ronson received a
text message from
music supervisor George Drakoulias that simply stated: "Barbie?" Ronson was initially asked to create two songs for the fantasy comedy film
Barbie: a
pop song for a big dance sequence that was to be filmed within two weeks and a 1980s-style
power ballad inspired by
Ken. Observing similarities between Barbie and the ebb and flow of disco's popularity, Ronson watched the 2020
documentary film The Bee Gees: How Can You Mend a Broken Heart, which depicted
Disco Demolition Night in 1979
Chicago, an event that signaled the genre's decline and closely paralleled Barbie's situation according to him. Subsequently, they made a "dream list" of artists they desired to feature on the soundtrack and Ronson produced several other songs for it. Ronson believed "Tastes Like Barbie" sounded like
Dua Lipa's second studio album,
Future Nostalgia (2020), Lipa, who was busy headlining the
Future Nostalgia Tour and planned to distance herself from that disco sound on the
follow-up album, accepted as she was a fan of Gerwig's work. Lipa intended to soundtrack a scene where all things go "from good to bad" for Barbie, and she goes from being happy to thinking about death: "I
love dance-crying. I knew it had to be fun, but I knew it needed a little element of sadness or a little pang of insufficiency". Initially satisfied with the melodies, chorus and verses, she later felt it could be improved and created new verses. Lipa wanted to synchronise the song to the choreography in its accompanying dance scene in the film—which she watched—approaching the process like writing a
film score. Ronson and Lipa abandoned an initial melancholy version of the song and made it more upbeat to suit the scene, which represented a flawless day in Barbie's life. The
Picard Brothers assisted Ronson with the string arrangement. In April 2023, it was revealed that Lipa had joined the cast of
Barbie as Mermaid Barbie. On 22 May 2023, "Dance the Night" was announced as the lead single from the soundtrack,
Barbie the Album (2023), set for release three days later. the song was later included in an official trailer.
Warner Music Group sent it for
radio airplay in Italy on 26 May, and
Atlantic and
Warner Records co-promoted the song to
contemporary hit radio stations in the United States four days later. Warner also released "Dance the Night" on physical formats like
cassette and
CD. == Composition and lyrics ==