Juba, Mar 27 (AP) South Sudan's main opposition party said its leader Riek Machar has been arrested as the UN called on all parties to uphold the 2018 agreement that ended the country's civil war.

The UN had warned on Monday that the country was teetering on the edge of a renewed civil war after fighting in the north between an armed group allied to Machar and government forces.

Also Read | Donald Trump Contrasts India's Aadhaar-EPIC Linking With Lax US Voter Identification.

Machar was “in confinement by the government” and his life was “at risk,” opposition spokesperson Pal Mai Deng said in a video address to the media Wednesday night.

The head of the UN mission in South Sudan, Nicholas Haysom, said following reports of the detention of Machar, all parties should “exercise restraint and uphold the Revitalized Peace Agreement.”

Also Read | Nithyananda Land Grab Scam in Bolivia: 'United States of Kailasa', Fictional County Founded by Rape Accused 'Godman', Dupes 3 Indigenous Tribes Into Signing Lease Agreements; 20 'Citizens' Deported After Allegations Surface.

South Sudan's five-year civil war, in which 400,000 people were killed, ended in a 2018 peace agreement that brought President Salva Kiir and Machar together in a unity government.

Tensions have been increasing between Kiir and Machar's parties and escalated in February when the White Army, an armed group loyal to Machar, overran an army base in Upper Nile state and attacked a UN helicopter.

The government responded with airstrikes, warning any civilian in the area where the army group is based to vacate or “face consequences.”

More than a dozen people have died since the airstrikes started in mid-March and the UN warned of a renewed civil war if the leaders do not put the country's interests first.

“Tonight, the country's leaders stand on the brink of relapsing into widespread conflict or taking the country forward towards peace, recovery and democracy in the spirit of the consensus that was reached in 2018 when they signed and committed to implementing a Revitalized Peace Agreement,” Haysom said in a statement on Wednesday night.

In early March, several of Machar's senior allies were arrested by security forces, an action his supporters condemned as a “grave violation” of the peace deal. (AP)

(The above story is verified and authored by Press Trust of India (PTI) staff. PTI, India’s premier news agency, employs more than 400 journalists and 500 stringers to cover almost every district and small town in India.. The views appearing in the above post do not reflect the opinions of LatestLY)