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
-
Paris 2024: Opening ceremony showcases grandiose celebration of French culture and diversity
3 hours -
How decline of Indian vultures led to 500,000 human deaths
4 hours -
Paris 2024: Ghana rocks ‘fabulous fugu’ at olympics opening ceremony
4 hours -
Trust Hospital faces financial strain with rising debt levels – Auditor-General’s report
5 hours -
Electrochem lease: Allocate portions of land to Songor people – Resident demand
5 hours -
82 widows receive financial aid from Chayil Foundation
5 hours -
The silent struggles: Female journalists grapple with Ghana’s high cost of living
5 hours -
BoG yet to make any payment to Service Ghana Auto Group
5 hours -
‘Crushed Young’: The Multimedia Group, JL Properties surprise accident victim’s family with fully-furnished apartment
6 hours -
Asante Kotoko needs structure that would outlive any administration – Opoku Nti
6 hours -
JoyNews exposé on Customs officials demanding bribes airs on July 29
7 hours -
JoyNews Impact Maker Awardee ships first consignment of honey from Kwahu Afram Plains
8 hours -
Joint committee under fire over report on salt mining lease granted Electrochem
8 hours -
Life Lounge with Edem Knight-Tay: Don’t be beaten the third time
8 hours -
Pro-NPP group launched to help ‘Break the 8’
9 hours