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
Piers Morgan is to become a permanent host of Good Morning Britain alongside Susanna Reid, ITV has confirmed.
An Australian grandfather has been hailed for his "fantastic survival skills" after keeping himself alive in the bush by eating ants.
A man who was never expected to be able to get out of a wheelchair has shared his first dance with his wife.