 Recording sessions for the album took place at PatchWerk Recording Studios in Atlanta, Encore Studios in Burbank, TDE Red Room in Carson, and "At My Mama's Studio" in Los Angeles.The first song that Lamar recorded for the album was "Compton", which featured Dr. Dre.The track serves as the twelfth track on the album, and acts as the standard edition's closing track.