"Lonely" is a song by Canadian singer Justin Bieber and American record producer Benny Blanco. The song was written by Bieber, Blanco and Finneas, with production handled by the latter two. It was released as a single by Friends Keep Secrets, Def Jam Recordings and Interscope Records on October 15, 2020, as the second single from Bieber's sixth studio album Justice (2021) and included on the reissue of Blanco's debut studio album Friends Keep Secrets, released in 2021.
"Lonely" marks the fifth collaboration between Bieber and Blanco, but it is the first where Blanco is credited as a lead artist. Past Bieber songs where Blanco is credited as a songwriter or producer include "Eenie Meenie" and "Somebody to Love" in 2010, "Love Yourself" in 2015 and "Cold Water" in 2016. "When [Blanco] and [Finneas] showed me this song to be honest it was hard to listen to considering how tough it was to get through some of these chapters," Bieber wrote of the song. At one point, Bieber broke down and cried in the studio. "I went into the studio and sang through it which wasn't easy but started to really see the importance of telling this story! It made me realise we all feel lonely at times! Being someone in my position I believe it is powerful to express vulnerability and that's why I believe this song is so powerful!" Speaking of the song, Blanco revealed that Bieber was "real nervous", and contemplated on whether to release the song. "Because he's like, 'People know me for this thing and it's like I've never been this raw.' He's raw on this song. This song brought us so much closer together. And it was just he's really opening up on this and he's super vulnerable.