At Nelson Mandela's former prison, Barack Obama wrote how "deeply humbled" he was "to stand where men of such courage faced down injustice."
"The world is grateful for the heroes of Robben Island who remind us that no shackles or cells can match the strength of the human spirit."
President Obama wrote his comments in the visitors' book in the prison courtyard where he saw where Mandela worked and hid his draft of his book A Long Walk to Freedom.
More top news
Jamie Oliver turned down the offer of playing a hobbit in the movie adaptation of the book by JRR Tolkien, the TV chef has revealed.
Children are being put at risk as 11% of posts for permanent children's social workers remain unfilled, experts have warned.
A Network Rail boss who presided over the Christmas trains chaos will not receive a bonus of more than £300,000 when he leaves in February