"It Ain't Me" is a song by Norwegian DJ Kygo and American singer Selena Gomez. It was released by Interscope Records, Sony and Ultra on 16 February 2017 as the lead single from Kygo's debut extended play Stargazing (2017) and it appears as an international bonus track on Gomez's album, Rare (2020). The song was written by Kygo, Brian Lee, Ali Tamposi, Gomez and Andrew Watt. It was produced by Kygo, Watt and Louis Bell. An EDM, dance-pop, electropop and tropical house song, "It Ain't Me" comprises an acoustic guitar line, and a build-drop arrangement in its chorus featuring pulsing piano notes, bass, synthesizers, finger-snap claps and pan flute melodies. Gomez sings the track in a husky tone, while in the chorus her vocals are reduced to recurring syllables. The lyrics are nostalgic and narrate a past relationship ruined by alcoholism.
In addition to reaching number one in Croatia, Lebanon, and Norway, the song attained top five peaks in Australia, Austria, Belgium, Canada, the Czech Republic, Denmark, Finland, France, Germany, Greece, Hungary, Ireland, Malaysia, the Netherlands, New Zealand, Poland, Portugal, Scotland, Slovakia, Sweden and Switzerland. It also reached the top 10 in Italy, Spain, the United Kingdom and the United States.