According to Puth, the song is about "a vicious cycle of going back to someone continuously, knowing deep down that they aren't any good for you."
Puth wrote the song on his own and produced it alongside Benny Blanco (Katy Perry's "I Kissed a Girl
," Kesha's "TiK ToK
," Rihanna's "Diamonds
," Justin Bieber's "Love Yourself