Sudan’s ruling Generals and protest leaders signed a hard-won constitutional declaration, paving the way for a transition to civilian rule after more than seven months of demonstrations and violence.

Under the agreement, signed at a ceremony in the capital, Khartoum, a joint civilian-military ruling body will oversee the formation of a civilian government and parliament to govern for a three-year transition period.

The declaration was the result of fraught negotiations between the leaders of mass protests, which erupted last December against the three-decade rule of president Omar al-Bashir, and the generals who ousted him in April.

Protest movement leader, Ahmed Rabie and the Deputy Head of the ruling military council, General Mohamed Hamdan Daglo signed the declaration at a ceremony attended by African Union. AU and Ethiopian mediators.