Lorde co-wrote "What Was That" with Jim-E Stack and co-produced it alongside Stack and
Daniel Nigro. Stack played piano, drums, keyboards, and synthesisers, while Nigro played piano, synthesisers, bass guitar, and electric guitar. The track was
engineered by Stack, Nigro, and Jack Manning;
mixed by
Chris Gehringer and
Spike Stent; and
mastered by Will Quinnell. Nigro additionally provided drum
programming, while Koby Berman worked as an additional engineer. "What Was That" also features electric guitar work by Andrew Aged of
Inc. No World. "What Was That" is 3 minutes and 29 seconds long and is primarily structured around two verses and two choruses.
synth-pop, and
dance track, with a midtempo Lorde's vocals are accompanied by an
electronic beat, a minimalist
bassline, light
percussion, and subtle,
syncopated synths that gradually
build up. The drum instrumentation of "What Was That" was inspired by the drums on
Radiohead's 2007 song "
Reckoner". According to
MusicRadar's Ben Rogerson, the drums were possibly created directly on Radiohead's original track, which was made available for download by fans so that they could create their own remixes. Lyrically, the song's narrator reflects on times spent with her partner taking "
MDMA in the back garden" and kissing "for hours straight". Although she has moved on, she expresses pain and regret, stating that she covered "up all the mirrors" because she could not "see myself yet" in the aftermath of the relationship. Towards the end of the track, the narrator gradually reconciles with the idea of moving on ("When I'm in the blue light, I can make it alright / What was that?").
NME Surej Singh thought that the song recalled the "hazy narrative" of
Melodrama in both its themes and melodies. Rhian Daly from the same magazine commented that unlike
Melodrama attempt to move past pain, the narrator in "What Was That" accepted the idea of "memories [...] haunting her". Daly also compared "What Was That" to
Melodrama lead single, "
Green Light", but thought that it displayed less intense emotional and sonic peaks. ==Critical reception==