Audio By Carbonatix
A top South African court has cleared the way for an eight-year-old girl, born to Cuban parents, to be granted South African citizenship.
This entitles her to access to health care, education and other welfare services which she had been denied.
As her parents have been out of Cuba for some time, the girl had been unable to claim Cuban citizenship and she had been effectively left "stateless".
This test case will affect other children in such legal limbo.
The case has been going through the South African courts for several years, and the Supreme Court of Appeal's decision came after the government challenged a ruling brought by a lower court.
The BBC's Karen Allen in Johannesburg says the home affairs ministry had argued that granting the girl a South African birth certificate would open the floodgates to new applications.
The court's judgement is a reaffirmation of existing laws in South Africa which give citizenship to stateless children.
The Supreme Court of Appeal gave the government 18 months to get its house in order and put in place a mechanism for processing similar claims.
Lawyers say the implementation of this ruling would bring South Africa into line with many other countries.
It could also help many of the thousands of stateless youngsters born in South Africa, who are now being put up for adoption and whose birth parents were foreign migrants or refugees, our reporter says.
A spokesman for South Africa's Department of Home affairs said it welcomed the chance to re-evaluate its position.
South Africa is home to many African migrants who have moved to the country for better economic fortunes in one of the continent's largest economies or to seek political refuge.
Latest Stories
-
Tanzanian lecturer arrested over anti-government protests charged with terrorism
2 hours -
2026 Commonwealth Games: Ghana’s sprint trio begin men’s 100m campaign on Monday
3 hours -
The notorious Cameroonian prison with its own record label
3 hours -
Team Ghana endures disappointing Day 3 at 2026 Commonwealth Games
3 hours -
Would you pay $58.5m to live in this iconic New York building?
3 hours -
Ryan Gosling to join Marvel Cinematic Universe as Ghost Rider
3 hours -
Berlin Pride attack suspect shot and killed during police operation
3 hours -
Burnham says he is prepared to call out Trump ‘if right for Britain’
3 hours -
Trump paused attacks on Iran to make space for talks, US ambassador says
3 hours -
Meghan calls Harry ‘a charmer’ during MasterChef Australia appearance
4 hours -
Barcelona pledge support after worker dies
4 hours -
Rodri set to undergo back surgery
4 hours -
IOC says Infantino complaint outside its scope
4 hours -
Kane set for talks with Bayern Munich over new deal
4 hours -
Howe unsure over Guimaraes amid Arsenal interest
5 hours