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
Five NHS trusts in the Midlands have come under fire after it emerged bosses were sitting on more than £134 million of spare cash.
A factory worker's faithful friends saved his life by lying with him to keep him warm when he fell into a diabetic coma in the freezing cold
A British military healthcare worker is being monitored at the Royal Free Hospital following a needle-stick injury in Sierra Leone.