South Sudan’s President Salva Kiir (front L) and rebel commander Riek Machar exchange documents

Reports says South Sudan’s warring leaders agreed to a power-sharing deal in Uganda on Saturday that will see the rebel leader Riek Machar return to his position as vice president.

South Sudan foreign minister Al-Dierdiry Ahmed said South Sudan’s President Salva Kiir and rebel leader Riek Machar had agreed to the proposal, but that further details would be discussed at negotiations to be held in Khartoum and Kenya in the coming days.

The latest agreement is part of renewed regional diplomatic efforts to end a conflict that has killed tens of thousands and forced millions from their homes since December 2013.

The war began when Kiir accused Machar, his former deputy, of planning a coup.

A similar power-sharing deal, that returned Machar to the vice presidency, was signed in 2015 but fell apart a year later in a deadly battle that saw Machar flee into exile.