Sudan's main opposition coalition and the ruling military council on Saturday signed a final power-sharing agreement, paving the way for a transitional government following the overthrow of long-time President Omar al-Bashir.

Stability in Sudan, which has been grappling with an economic crisis, is seen as crucial for a volatile region struggling with conflict and insurgencies from the Horn of Africa to Egypt and Libya.

The Transitional Military Council has ruled Sudan since April, when the military ousted al-Bashir following months of protests against his rule during which dozens of demonstrators were killed.

Al-Bashir is wanted for war crimes in Sudan's Darfur region by the International Criminal Court and is awaiting trial on corruption charges.

The council and the main opposition alliance, known as the Forces of Freedom and Change (FFC), have been negotiating the power-sharing deal for months.

One of Sudan's top generals, Mohamed Hamdan Dagalo, who is deputy head of the military council, and FFC representative Ahmad al-Rabie had initialed the agreement on Aug. 4 and were the main signatories Saturday.

Regional and international dignitaries including Ethiopian Prime Minister Abiy Ahmed and South Sudanese President Salva Kiir were present at the event.