Johannesburg: US President Barack Obama on Sunday donned a teacher`s hat to tell his two young daughters how Mahatma Gandhi`s `Satyagraha` had influenced American civil rights leader Martin Luther King to fight injustice.
While visiting the Robben Island prison in South Africa where his hero Nelson Mandela spent two thirds of his 27 years in jail, Obama told Sasha and Malia how Mahatma Gandhi started his non-violent political struggle in South Africa.
"One thing you guys might not be aware of is that the idea of political nonviolence first took root here in South Africa because Mahatma Gandhi was a lawyer here in South Africa," Obama said, according to a White House pool report.
"Here is where he did his first political (activism). When he went back to India the principles ultimately led to Indian independence, and what Gandhi did inspired Martin Luther King," said Obama, the first black president of the US said.
In a blue wind breaker and slacks, the US president along with his wife Michelle and daughters visited the cell where the anti-apartheid leader was jailed.
Obama in his speeches has often said Gandhi has inspired Americans and African Americans, including Martin Luther King.
During a school interaction in the US, Obama had said once that if it were possible, he would have loved to have dinner with Mahatma Gandhi.
Obama also priased Mandela saying, "Like billions all over the world, I and the American people have drawn strength from the example of this extraordinary leader and the nation that he changed."
"Nelson Mandela showed us that one man’s courage can move the world, and it calls on us to make choices that reflect not our fears, but our hopes in our own lives, and in the lives of our communities and our countries," Obama said in Cape Town.
Earlier on Sunday, Obama visited Robben Island with his family to reflect on Mandela lengthy stay there as part of his 27 years in prison before leading South Africa to its first democratic elections in 1994.