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
-
Man Utd can win Premier League next season – Mount
4 hours -
Mainoo signs new Man Utd deal until 2031
4 hours -
Britney Spears charged with one misdemeanor in DUI caseÂ
4 hours -
Iran miss FIFA congress but ‘will play’ at World Cup
4 hours -
BoG GHS15.6bn loss: Yesterday’s whistleblowers have become today’s defenders – Oppong Nkrumah
4 hours -
Gunfire on Yapei Road: Police foil robbery plot, 2 suspects killed in Buipe operation
5 hours -
Saudi Arabia to stop funding LIV Golf next season
5 hours -
Oil price hits highest since 2022 after report Trump to be briefed on new Iran options
5 hours -
Adamus Resources Ltd sets record straigh on illegal mining allegations
6 hours -
Man sentenced to death for murder of toddlers at Ugandan nursery
6 hours -
Meta in row after workers who say they saw smart glasses users having sex lose jobs
6 hours -
Arhinful calls for patience and support for Ayew ahead of World Cup
6 hours -
Zanetor Rawlings elected 2nd Vice President of Pan-African Parliament
6 hours -
GIFEC disburses 350 laptops for One Million Coders Program in Upper West Region
6 hours -
2025 BoG GH¢15.7bn loss was a peak, future results expected to improve – Atta Issah
6 hours