Israel has cancelled plans to deport migrants en masse to Africa after reaching a deal with the United Nations refugee agency.
More than 16,000 asylum seekers will instead be resettled in Western countries, including Canada, Italy and Germany, Prime Minister Benjamin Netanyahu said.
The rest, more than 18,000 people, will be given permanent residency in Israel.
Israel's Supreme Court had blocked deportations meant to begin on Sunday.
The plan to send the migrants to African countries - reported to be Uganda and Rwanda - was condemned by Israeli activists and sparked protests.
The new plan will be implemented over a five-year period. Mr Netanyahu's office described the agreement as "unprecedented".
"These understandings will allow the removal of more migrants from Israel than in the previous plan, and under UN and the international community's auspices," a statement said.
Canada, Italy and Germany are yet to officially confirm their participation in the agreement.
Where are the migrants from?
Most of the Africans are from Eritrea - a one-party state whose leaders have been accused of crimes against humanity by a UN inquiry - and war-torn Sudan.
They say they fled danger at home and that it is not safe to return, but Israel considers the majority of the African asylum seekers affected by the policy to be economic migrants.
Most of them entered from Egypt several years ago, before a new fence was built along the desert border. This has ended most illegal crossings.
How controversial is this issue?
The decision in January to offer the migrants a cash lump-sum and a plane ticket to leave Israel voluntarily or otherwise face forced expulsion was controversial in Israel.
Some critics in the country and among the Jewish community abroad - including former ambassadors and Holocaust survivors - saw the plan as unethical and a stain on Israel's international image. The UN refugee agency said it violated local and international laws, and large protests were held in Israel.
Mr Netanyahu said the opposition was "baseless and absurd" and that Israel would resettle "genuine refugees".
Activists, however, noted that only a handful of Eritreans and Sudanese had been recognised as refugees by Israel since the country took over the processing of applications from the UN in 2009.
How have people reacted?
Opposition leaders and activists in Israel hailed the new deal on Monday.
"I congratulate the activists who fought, campaigned and did not give up," said Avi Gabay, head of the Zionist Union, the largest opposition faction in the Israeli parliament.
Michal Rozin, a member of Israel's parliament and a lead campaigner against the expulsions, said the agreement represented the "success of the Israelis who protested against the evil of deportation".
But a group of residents in southern Tel Aviv, home to many of the migrants, said the new plan was "a shame for the state of Israel".
Latest Stories
-
19 steps for getting over even the most devastating breakup fast
1 hour -
8th Ghana CEO Summit launched with focus on AI transformation, economic diversification
1 hour -
Prof Opoku-Agyemang has not been given a fair appraisal – Ablakwa
2 hours -
Rainstorm wreaks havoc in Keta and Anloga districts, residents count their losses
2 hours -
Global Plastics Treaty negotiations begin in Ottawa as countries converge on phasing out problematic plastic uses
2 hours -
Support energy alternatives adoption to sustain businesses – GUTA tells government
2 hours -
11th DRIF opens in Accra with a call on governments to focus on digital inclusion
2 hours -
Stakeholders outline plans at RE4C Coalition’s General Assembly in Accra
2 hours -
Women Need ‘shock observers’ for active political participation – Ex-Bauchi Assembly Member
2 hours -
2024 polls: Stop fighting over positions in Mahama’s next government – Asiedu Nketiah
2 hours -
Although people may not always listen to the lyrics, there’s still a market for rap in Ghana – E.L.
2 hours -
Passengers appeal to transport operators to officially announce new fares
2 hours -
Damongo: About 400 NPP Members resign over Minister’s alleged meddling in chieftaincy affairs
3 hours -
Next NDC government will pay special attention to women – Naana Opoku-Agyemang
3 hours -
Amerado is singing and it’s good he’s doing that – Lyrical Joe
3 hours