It said the country “is already home to a substantial number of refugees and is seized with addressing their needs.

“Most of them already benefit from the Social Assistance and free medical health programmes offered by our country.”

The most industrialised nation on the continent, South Africa is a major destination for economic migrants from neighbouring countries and beyond.

The country also boasts one of the world’s most progressive refugee policies, which helped attract more than a million asylum-seekers between 2007 and 2015.

But the processing of their paperwork was backlogged even before the pandemic and most find themselves stuck in limbo after applications are rejected, according to rights groups.

The Taliban celebrated Tuesday after the last US troops left the country, ending 20 years of war.

The Islamists’ return to power forced Western countries to evacuate their citizens and Afghans likely to face reprisals from the Taliban for having worked for the foreign forces in the country.

“In terms of international law, the well-being of the refugees is best served by remaining in the first country arrival - Pakistan - pending their final destinations,” the South African statement said.

Uganda last week accommodated 51 Afghan evacuees.

The east African country said it would provide them with temporary refuge following a request from the US government to temporarily host “at-risk” Afghan nationals and others who are in transit to other destinations.

Read more from Africa