 Lamar co-wrote the song with Thundercat and Redfoo, while Terrace Martin, Michael Kuhle, and Sounwave served as producers.The song features interpolations and references to lyrics written by Michael Jackson, Ahmad, and Johnny Burns, who are all credited as songwriters.