DAKAR, Senegal – Laying bare a clash of cultures, President Obama on Thursday urged African leaders to extend equal rights to gays and lesbians but was bluntly rebuked by Senegal’s president, who said his country “still isn’t ready” to decriminalize homosexuality.

Obama opened his weeklong trip to Africa one day after the U.S. Supreme Court expanded federal benefits for married gay couples. In his first in-person comments on the ruling, Obama said the court’s decision marked a “proud day for America.”

Search photos available for purchase: Photo Store →

He pressed for similar recognition for gays in Africa, wading into a sensitive area in a region where dozens of countries outlaw homosexuality and a few punish violations with death.

“When it comes to how the state treats people, how the law treats people, I believe that everybody has to be treated equally,” Obama said during a news conference with Senegalese President Macky Sall at the grand presidential palace in Dakar.

But Sall gave no ground. Senegal is “very tolerant,” he assured Obama, but is “still not ready to decriminalize homosexuality.” Sall said countries make decisions on complex issues in their own time, noting that Senegal has outlawed capital punishment while other countries have not — a pointed jab at the United States, where the death penalty is legal in many states.

Obama’s trip, which also includes stops in South Africa and Tanzania, marks the most extensive visit to Africa by the first black U.S. president since he took office.

Many Africans have expressed disappointment over Obama’s lack of direct engagement with affairs on their continent — particularly given that his father was Kenyan and he has many relatives living in Africa. Yet he was still enthusiastically welcomed.

Thousands of people gathered on the roads near the presidential palace as Obama’s motorcade sped through the coastal city. Some waved homemade signs welcoming Obama, while those gathered near the palace entrance sang and played drums.