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
-
I want to focus more on my education – Chidimma Adetshina quits pageantry
3 hours -
Priest replaced after Sabrina Carpenter shoots music video in his church
3 hours -
Duct-taped banana artwork sells for $6.2m in NYC
3 hours -
Arrest warrants issued for Netanyahu, Gallant and Hamas commander over alleged war crimes
3 hours -
Actors Jonathan Majors and Meagan Good are engaged
3 hours -
Expired rice saga: A ‘best before date’ can be extended – Food and Agriculture Engineer
4 hours -
Why I rejected Range Rover gift from a man – Tiwa Savage
4 hours -
KNUST Engineering College honours Telecel Ghana CEO at Alumni Excellence Awards
4 hours -
Postecoglou backs Bentancur appeal after ‘mistake’
4 hours -
#Manifesto debate: NDC to enact and pass National Climate Law – Prof Klutse
4 hours -
‘Everything a manager could wish for’ – Guardiola signs new deal
5 hours -
TEWU suspends strike after NLC directive, urges swift resolution of grievances
5 hours -
Netflix debuts Grain Media’s explosive film
5 hours -
‘Expired’ rice scandal: FDA is complicit; top officials must be fired – Ablakwa
6 hours -
#TheManifestoDebate: We’ll provide potable water, expand water distribution network – NDC
6 hours