The Duke and Duchess of Sussex visited a secondary school in Lagos on the last full day of their Nigeria tour.
Prince Harry heard about the work of a charity which organises basketball camps for children in Africa and played a game with students.
The trip marks 10 years of the Invictus Games, which Nigeria joined for the first time last year.
Later on Sunday, the couple were welcomed to the State Governor House in Nigeria's most populous city.
They listened to a speech by the state governor, Babajide Sanwo-Olu, and signed a visitors register.

At the school, the couple were welcomed with a dance routine by four students.
The Duchess wore a white blouse with an aso-oke attire, a traditional hand-woven cloth from south-western Nigeria, wrapped around her waist.
She was gifted the cloth at a reception hosted by the military on Saturday.
The duke joined the kids in dribbling basketballs, even shooting one in the hoop, before they all posed for a photo.
"The power of sport can change lives," Harry said.

Later on Sunday, the couple will visit the Lagos Polo Club, where a charity match will take place to raise funds for Nigeria: Unconquered, which is in charge of organising the country's team for the Invictus Games.
The tour of the country has been personal for Meghan. Speaking at an event on women in leadership on Saturday, the duchess said discovering she had Nigerian heritage via a genealogy test had been eye-opening and humbling.

"Every single moment that I hear anyone talk about what it means to be a Nigerian woman, it is the most flattering thing to be in that company," she told audience members.
On Saturday, the couple spent time with Nigeria: Unconquered and Harry played a game of sit-down volleyball with some army veterans.
The duke and duchess also spoke at a reception hosted by the Nigerian military's chief of defence staff.
Latest Stories
-
Beijing seizes tiny sandbank in South China Sea
27 minutes -
South Africa will defend sovereignty, ANC chair says as tensions with US grow
37 minutes -
GPL 2024/25: Kamaradini Mamudu scores twice in Medeama win over Young Apostles
1 hour -
GPL 2024/25: Opoku scores as Kotoko beat Aduana FC to end winless run
1 hour -
Liverpool thrash Tottenham to clinch Premier League title
1 hour -
Vision FC secure deserved win over Bibiani Gold Stars
2 hours -
Support for military intervention grows among Ghanaians – Afrobarometer reveals
2 hours -
GPL 2024/25: Accra Lions boost relegation fight with win over Bechem
2 hours -
“Rethink and decolonise education systems” -African nations urged
3 hours -
Ghana will face fiscal challenges if it ends IMF programme in 2026 – Bokpin
4 hours -
Dynaspace hosts entrepreneurs, executives to boost business growth
4 hours -
Bloggers Association launches national program to boost digital skills
4 hours -
The Kuenyehia Prize for Contemporary Art debuts in Lagos
4 hours -
ECOWAS Court requires proof of human rights violations for admissibility – Justice Asante
4 hours -
Ghanaian MP moderates World Bank Group’s Global Young Members of Parliament Session at 2025 Spring Meeting in Washington DC
4 hours