By Simi Jolaoso & Natasha Preskey
BBC News
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 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.