CAIRO — Sudan’s pro-democracy movement and ruling military council signed a final power-sharing agreement Saturday at a ceremony in the capital, Khartoum, after weeks of tortuous negotiations.
The deal paves the way for a transition to a civilian-led government following the military overthrow of President Omar al-Bashir in April. Earlier this month, the two sides initialed a constitutional document in the wake of international pressure and amid growing concerns the political crisis that followed al-Bashir’s ouster could ignite civil war.
General Abdel-Fattah Burhan, head of the military council, called the signing a ‘‘victorious and historic day for our nation.’’
‘‘The revolution has achieved its goals,’’ he said, vowing the military would guarantee the transition to civilian rule.
Protest leader Mohammed Naji al-Asam said the two sides have ushered in a ‘‘new page’’ in Sudan’s history after three decades of ‘‘repression and corruption.’’
The two sides appeared to agree on the soundness of a deal that came about in part because of international pressure. Ethiopia and the African Union co-led mediation efforts between the military and protesters.
Many regional leaders and international envoys attended Saturday’s ceremony, including Ethiopian Prime Minister Abiy Ahmed. Attendees in the Friendship Hall where the ceremony took place received Ahmed with cheering and chants.
But at least one analyst, Suliman Baldo, a senior researcher with the Enough Project, said the country will still face obstacles during the coming months of transition.
‘‘Daunting challenges will face Sudan’s progress to democracy and sound governance, chief among them the survival of the elements of the former regime in the institutions of the transition.’’
Still, Sudanese celebrated in Khartoum and elsewhere across the country Saturday. Video posted online showed people celebrating in the streets in Darfur and the eastern province of Kassala.
Railway workers and other protesters had traveled to the capital Friday by train from Atbara, the northern transport hub where the uprising began in December.
The two sides came under renewed pressure to reach an accord after security forces opened fire on student protesters in the city of Obeid on Aug. 1, leaving six people dead. At least nine troops from the paramilitary Rapid Support forces were arrested over the killings.
In June, security forces violently dispersed the protesters’ main sit-in outside the military headquarters in Khartoum, killing dozens of people and plunging the fragile transition into crisis. The deal includes the establishment of an independent investigation into the crackdown.
Former Prime Minister Sadiq al-Mahdi, the leader of the opposition Umma party, said the deal was a ‘‘first step’’ in the democratic change until ‘‘fair’’ elections are held.
‘‘Today is the day of transition to civilian rule. . . . The next stage will be a test for us, without exclusion. We will open the door so all people can participate,’’ said al-Mahdi, who led Sudan’s last freely elected government before an Islamist-backed military coup in 1989.
General Mohammed Hamdan Dagalo, deputy head of the military council, and protest leader Ahmad Rabie, who is a high school teacher, signed the deal. Both had initialed the documents earlier this month.
Spokesman Stephane Dujarric said UN Secretary-General António Guterres congratulated the Sudanese people and looked forward to ‘‘engaging with and supporting the transitional governing institutions.’’
The power-sharing deal creates a joint military and civilian sovereign council to rule for a little over three years until elections can be held. A military leader would head the 11-member council for the first 21 months, followed by a civilian leader for the next 18.
The agreement also establishes a Cabinet appointed by the activists, as well as a legislative body to be assembled within three months. The protest coalition is to have a majority in that body, as nominated by the Forces for Declaration of Freedom, a coalition of opposition parties and movements representing the protesters.
The FDFC has nominated a well-known economist, Abdalla Hamdok, to lead the government during the transition. He served as the deputy executive secretary of the United Nations Economic Commission for Africa since November 2011, and has yet to be confirmed by the sovereign council. The council’s members are to be announced on Sunday, after which the ruling military council will immediately be disbanded.
The deal has been criticized by the Sudan Revolutionary Front, an alliance of the largest rebel groups in Darfur. The rebels have stressed to protest leaders that the agreement did not include ‘‘basic principles’’ to achieve peace in Sudan. The deal calls for the government to reach a peace agreement with the rebels within six months.
The rebel alliance, which is part of the FDFC, wanted to include a peace document agreed with the protest movement into the power-sharing deal. The rebel leaders have engaged in talks with other protest leaders to settle the disputed points.
The military overthrew al-Bashir following months of protests against his three-decade-long authoritarian rule.