But after nearly a month of negotiations, the parties have reached a political agreement.
Abdalla Hamdok has been released and reinstated as prime minister.
But what does the 14-point deal signed with the military mean for the country’s democracy?
And how much power would the technocratic government hold moving forward?
Sudan's Prime Minister, Abdalla Hamdok, talks to Al Jazeera.