Burkina Faso's interim President Michel Kafando has said he is back in charge and civilian rule restored after last week's military takeover.
His announcement came as coup leader Gen Gilbert Diendere went to welcome several African leaders arriving to oversee the transfer of power.
His presidential guard agreed to a deal overnight with the regular army to avoid violence.
They pledged to return to barracks and the army to withdraw from the capital.
The presidential guard (RSP) is loyal to Blaise Compaore, the country's long-time ruler who was ousted in a popular uprising last year.
The elite troops installed Gen Diendere as the leader last week - a month before elections had been due in the landlocked country.
The army on Monday ordered the coup leaders to step down or be ousted by force, raising the spectre of a civil war.
At least 10 people have been killed and more than 100 injured in clashes between the RSP and protesters.
Mogho Naba, the traditional ruler king of the Mossi ethnic group, witnessed the peace deal
"Dear compatriots, I am free of my movements and resuming service. The transition is back and is resuming the exercise of power," Mr Kafando told journalists.
However, he said he was not fully committed to the plan, put together on Tuesday by West African presidents at an emergency meeting of the regional bloc Ecowas.
It is not clear whether the mediators' peace plan includes key RSP demands for an amnesty for the coup leaders and the lifting of an electoral ban on those connected to Mr Compaore
Latest Stories
-
No business as usual – Mahama warns appointees
7 minutes -
Mr P.O.P: Message from the Morning Man by Kojo Yankson
9 minutes -
True peace stems from justice, not the lack of conflict – Duncan-Williams
10 minutes -
One dead, student rider injured in a crash at Assin Andoe
11 minutes -
Have a long term plan and financial solution for Ghana’s energy sector to permanently get rid of “dumsor”.
16 minutes -
Ghana to commission first NuScale small modular reactor simulator training centre in Africa
18 minutes -
FirstBank celebrates year-end thanksgiving service at Victory Bible Church
33 minutes -
FirstBank’s 2024 Graduate Trainees give back to the community: A day of learning and sharing at Mount Zion Presby Model Primary School
36 minutes -
Fire destroys hundreds of shops in Techiman Central Market, traders left in despair
49 minutes -
Apple board pushes against diversity rollback call
53 minutes -
‘Merit and loyalty go hand-in-hand,’ says Prof Aryee on Mahama’s appointments
1 hour -
Statue of former President Akufo-Addo in Sekondi destroyed
1 hour -
NDC promised to decouple AG and Minister of Justice roles – Prof Atsu Aryee reminds party
2 hours -
Wake up and speak up – Former GES boss calls on headteachers to lead boldly
2 hours -
Taliban ‘do not see women as human’, says Malala
2 hours