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
-
NACOC destroys over GH¢12.6m of illicit drugs at Bundase
31 minutes -
GJA affirms MGL’s Kofi Adu Domfeh as Ashanti Regional GJA Chairman-elect
1 hour -
Blackstar Experience partners AfCFTA, ATP to host Creatives Connect Afrika in November
2 hours -
Ridge Hospital nurse sues social media activist Ralph Saint Williams for GH₵7m over assault and defamation
2 hours -
Police refute reports of dismissal of officer involved in Ablekuma North by-election incident
2 hours -
FBI commends Cyber Security Authority of Ghana in $100 million fraud case
4 hours -
Sekondi: Man arrested as murder suspect in 17-year-old brother’s stabbing incident
4 hours -
JoySports Invitational Tournament 2025 preview: Chief of Staff joins corporate Ghana for event on August 23
4 hours -
Bagre Dam to start spilling on August 27
5 hours -
University of Ghana opens 10-day exhibition showcasing nation’s heritage and identity
5 hours -
Choose physical exercise to boost your energy instead of substance abuse – Okomfour Kwadee
5 hours -
Berlinale Spotlight: Accra returns with African cinema and critical conversations
5 hours -
Obuobia Darko-Opoku marks birthday with compassion, supports families of Obogu Accident Victims
5 hours -
Nigeria deports 60 Chinese, 39 Filipino convicted in crypto romance scams
5 hours -
39 arrested in Tema cyber fraud raid
5 hours