Southern African leaders have announced they will pull their troops out of eastern Democratic Republic of Congo, where they have been helping the government fight rebel forces.
The troops were sent two years ago to support the Congolese army fight the Rwandan-backed M23 rebels, who have seized control of large parts of mineral-rich eastern DR Congo this year.
At least 19 soldiers from South Africa, Malawi, and Tanzania were killed when the M23 captured the region’s biggest city, Goma, in January.
Thousands of people have been killed during the fighting, and hundreds of thousands left without shelter after fleeing their homes.
There have been concerns that the fighting could escalate to a wider regional conflict.
The M23 has continued to gain ground in eastern DR Congo and last month seized the region’s second-biggest city, Bukavu.
South Africa’s deployment was heavily criticised by the public and opposition following the killing of its soldiers.
Announcing the withdrawal, South Africa’s President Cyril Ramaphosa said that the “situation is precarious, but the peace as it is now is holding”.
However, the M23 has continued to seize more territory this week.
Sandile Swanda, a South African political analyst, told the BBC it was an “embarrassing” situation for her country.
“The rebels are very strong. This is a full-on war, and South Africa is hardly ready for any such war,” he said.
He added: “No country in the Sadc region is ready for this war – psychologically, militarily and politically.”
But the withdrawal is not just a setback for South Africa, it’s a blow to both SADC and the DR Congo, analysts say.
Stephanie Wolters, a senior research fellow at the South African Institute of International Affairs, told the BBC that SADC’s withdrawal weakens Kinshasa’s position.
“They [Sadc] have gone from being on Kinshasa’s side to being at best in a neutral position,” she said.
In February, Malawi’s president said his troops would withdraw from Congo, although he didn’t give a reason.