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 hitchhiking robot that won the hearts of fans worldwide has met an untimely end after being vandalised on its trip across the US.
Rules could be changed to remove support for failed asylum seekers living in Britain with their families, a Home Office minister has said.
More than 50 dog surfers of all breeds and sizes joined an annual dog surfing competition in California