The song Earth, by comedian and rapper Lil Dicky, also has cameos from Katy Perry, Snoop Dogg and Miley Cyrus.
A share of proceeds will go to the Leonardo DiCaprio Foundation.
DiCaprio, who campaigns on environmental issues, also makes an animated appearance towards the end of the seven-minute long video.