Sudanese Prime Minister Abdullah Hamdok, who had been deposed, was reinstated on Sunday.
Mr Hamdok assumed the highest state office in the presidential palace in Khartoum, according to state broadcaster Sudan TV.
The PM and military ruler Abdel Fattah al-Burhan had just signed an agreement for a new transitional administration.
“We will get our country back on track,” Hamdok pledged. He went on to say that the accord had reopened the path to democracy.
Mr Hamdok will be able to establish a cabinet with civilian MPs, according to the deal. Mr Al-Burhan, on the other hand, will lead the new interim government alongside Mr Hamdok as Sovereign Council leader.
The military is also represented on the Sovereign Council.
All political detainees detained in the aftermath of the Oct. 25 coup will be released.
The agreement to reset Sudan’s political clock occurred after lengthy negotiations between the leaders of the military coup and members of civil society.
Mr Hamdok had been detained at his home since the coup.
Many people have been killed and hundreds injured in protests demanding for the return of civilian rule.
The Africa Union has also suspended Sudan from the bloc after the coup.