To Pimp a Butterfly is the third studio album by American rapper Kendrick Lamar. The album was recorded in studios throughout the United States, with production from Sounwave, Terrace Martin, Taz “Tisa” Arnold, Thundercat, Rahki, LoveDragon, Flying Lotus, Pharrell Williams, Boi-1da, Knxwledge, and several other high-profile hip hop producers, as well as executive production from Dr. Dre and Anthony “Top Dawg” Tiffith. Guest appearances include Thundercat, George Clinton, Bilal, Anna Wise, Snoop Dogg, James Fauntleroy, Ronald Isley, and Rapsody.
The music of To Pimp a Butterfly incorporates a variety of styles from traditional African-American music, including jazz, funk, soul, spoken word, and avant-garde. Lyrically, it features political commentary and personal themes concerning African-American culture, racial inequality, depression, and institutional discrimination. This thematic direction was inspired by Lamar’s tour of historic sites during his visit to South Africa, such as Nelson Mandela’s jail cell on Robben Island.