Another version of the song was also released as a 'Hollywood remix' but was not used in the original film.[3] "City of Stars" was released as a single in Italy on March 3, 2017.[1]
Context
In the film, the song is first sung by Gosling alone as the character of Sebastian as he sings and dances on the Hermosa Beach Pier. Later in the film, it is reprised by Sebastian and Mia (Stone) during a montage of him getting ready to tour with Keith's (John Legend) band, as well as Mia quitting her job at a coffee shop and renting out a theater for her one-woman play.
Inspiration
Justin Hurwitz, the composer of the song, discussed the writing of the song:[4]
[The song] started at the piano with me just working on demos for Damien, sending him ideas until something really sparked. It's so funny that that and "Audition" are the two songs that people seem to be responding to the most, at least so far, because they had similar processes in the sense that they had probably the least amount of fussing at the piano demo stage. [...] I was just composing it from an emotional place and thinking about the tone. I would say the tone is hopeful, but melancholy at the same time. And it kind of goes back-and-forth between cadencing in major and cadencing in minor, because I think that’s kind of what the song is about. You have these great moments and then you have these less great moments in life and in Los Angeles and we see it happen in the story. I was thinking about that idea a little bit and just trying to compose a melody that I thought was shapely and beautiful. I guess it has some jazz inflections, because it’s something Sebastian plays on the piano.
Music video
The music video was uploaded to YouTube channel on Apr 17, 2017, and has gained more than 31 million views as of April 2024.