"The Heart Wants What It Wants" is a song by American singer Selena Gomez from her 2014 compilation album For You. It was released on November 6, 2014, through Hollywood Records. The song was written by Gomez, Antonina Armato and Tim James with additional songwriting provided by David Jost. Armato and James, who collectively form the production duo Rock Mafia, also produced the song. A mid-tempo pop and R&B track with a minimal electropop beat, its accompanying music video was premiered on November 6 .