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
A British couple with a combined age of 194 are to become the world's oldest newlyweds when they marry in the summer.
Weekend weather starts wet for some
Manchester United manager Louis van Gaal says Ryan Giggs will almost certainly succeed him at Old Trafford.