[1] The track was written by Gomez, Madison Love, Brett McLaughlin and its producers Sir Nolan and Simon Says.
[2] "Rare" was developed in a writing session with producer Sir Nolan and songwriters Madison Love and Brett McLaughlin.
In terms of music notation, "Rare" was composed using 44 common time in the key of C Mixolydian with a tempo of 115 beats per minute,[10] following a chord progression of C–B♭.
"Rare" debuted and peaked at number thirty on the US Billboard Hot 100 following the release of the parent album and its accompanying music video.
[12] It features Gomez wandering in an ethereal world, laying on a spinning bed in a discotheque inspired room, and swimming in a pool.
It was stated by Gomez that the music video was inspired by her philanthropic trip to Kenya months prior to the album release.