President Barack Obama has spent the afternoon touring a Senegalese island where Africans were shipped across the Atlantic into slavery and he called the visit a 'very powerful moment.'
Obama says visiting Goree Island Thursday with his family helps them fully appreciate the magnitude of the slave trade. They toured the museum at the Maison des Esclaves where slaves were gathered before going through the 'Door of No Return' and being forced onto ships bound for North America.
Obama also said that, as an African American and an African-American president, the trip gaves him even greater motivation to stand up for human rights around the world, and the visit came just hours after he clashed with his Senegalese hosts over gay rights.
He said the island is a reminder of what happens when civil rights are not protected.
The timing of the visit was pointed as it came the day after the Supreme Court ruled against the Defense of Marriage Act.
President Barack Obama on Thursday praised the Supreme Court's ruling on same-sex marriage as a 'victory for American democracy'.
Obama said recognition of gay unions in the United States should cross state lines and that equal rights should be recognized universally.
It was his first chance to expand on his thoughts about the ruling, which was issued Wednesday as he flew to Senegal, one of many African countries that outlaw homosexuality.
Senegalese President Macky Sall rebuffed Obama's call for Africans to give gays equal rights under the law.
'We are still not ready to decriminalize homosexuality,' Sall said, while insisting that the country is 'very tolerant' and needs more time to digest the issue without pressure.
'This does not mean we are homophobic.'
Obama said gay rights didn't come up in their private meeting at the presidential palace, a mansion that looks somewhat similar to the White House.
But Obama said he wants to send a message to Africans that while he respects differing personal and religious views on the matter, it's important to have nondiscrimination under the law.
'People should be treated equally, and that's a principle that I think applies universally,' he said.
A report released Monday by Amnesty International says 38 African countries criminalize homosexuality.
In four of those - Mauritania, northern Nigeria, southern Somalia and Sudan - the punishment is death.
These laws appear to have broad public support. A June 4 Pew Research Center survey found at least nine of 10 respondents in Senegal, Kenya, Ghana, Uganda and Nigeria believe homosexuality should not be accepted by society.
Papi Nbodj, a 19-year-old student who stood by the road to the presidential palace to see Obama's arrival, said homosexuality is against the religious beliefs of most in Senegal.
'We are in a Muslim country, so we certainly cannot have it here,' he said.
'And for me it's not OK to have this anywhere in the world.'
Sall sought to reassure Obama that gays are not persecuted in Senegal. But under Senegalese law, 'an improper or unnatural act with a person of the same sex' can be punished by up to five years in prison.
As for Wednesday's court ruling, Obama said he's directing his administration to comb through every federal statute to quickly determine the implications of a decision that gave the nation's legally married gay couples equal federal footing with all other married Americans.
He said he wants to make sure that gay couples who deserve benefits under the ruling get them quickly.
Obama said he personally believes that gay couples legally married in one state should retain their benefits if they move to another state that doesn't recognize gay marriage.
'I believe at the root of who we are as a people, as Americans, is the basic precept that we are all equal under the law,' he said.
'We believe in basic fairness. And what I think yesterday's ruling signifies is one more step towards ensuring that those basic principles apply to everybody.'
Obama also offered prayers for former South African President Nelson Mandela, who is gravely ill, ahead of Obama's planned visit to his country this weekend.
Obama said he was inspired to become political active by Mandela's example in the anti-apartheid movement of being willing to sacrifice his life for a belief in equal treatment.
'I think he's a hero for the world,' Obama said.
'And if and when he passes from this place, one thing I think we'll all know is that his legacy is one that will linger on throughout the ages.'
Hundreds awaited Obama behind barricades later at Goree Island on Africa's westernmost point, where Africans were said to be have been shipped off into slavery across the Atlantic Ocean.
Obama peered out at the crashing waves through the island's 'Door of No Return,' at first by himself and later joined by his wife, Michelle, and two daughters.
Emerging minutes later, Obama said the site painted a powerful picture of the magnitude of the slave trade as he reflected on the ties many in the U.S. share with the continent.
'For an African-American, an African-American president, to be able to visit this site gives me even greater motivation in terms of human rights around the world,' he said.
Obama's focus in Senegal is on the modern-day achievements of the former French colony after half a century of independence.