Sanskrit shlokas were read out from Hindu scriptures in a moving ceremony in the FNB stadium in Soweto, the nerve centre of his campaign, as tens of thousands South Africans gathered to pay homage to the anti-apartheid icon and first black President who died on December 5.
"It is hard to eulogise any man...How much harder to do so for a giant of history, who moved a nation toward justice, and in the process moved billions around the world," Obama said in a 20-minute speech punctuated by reference to the struggle for racial freedom in Africa and America.
Obama also referred to Mahatma Gandhi when he said that Mandela, like Gandhi, led a resistance movement that at its start held little prospect of success.
UN Secretary General Ban ki Moon, African leaders including Robert Mugabe, the last white President F W de Klerk, Chinese Vice President Li Yuanchao and Afghanistan President Hamid Karzai were among the other leaders present.
