"Love Yourself" was written by Ed Sheeran, Benny Blanco and Justin Bieber, with production being done by Benny Blanco, who was also responsible for the song's instrumentation and programming.
Lyrically, "Love Yourself" is a kiss-off to a narcissistic ex-lover who did the protagonist wrong,[REF][REF] with Bieber singing in a snappy and spiteful tone[REF] while "hating on a girl for loving herself too much."[REF]