A visit to Nelson Mandela's prison cell shaped To Pimp a Butterfly

Kendrick Lamar’s tour of Robben Island and other South African historic sites gave the album its political and spiritual gravity, woven through jazz, funk, and soul.