Mali President Ibrahim Boubacar Keita has resigned after being captured by soldiers on Tuesday, state TV reports.
In a televised address, Mr Keita said he had also dissolved the government and parliament.
“I want no blood to be shed to keep me in power,” he added.
It comes hours after he and Prime Minister Boubou Cissé were taken to a military camp near the capital Bamako, condemned by regional powers and France.
“If today certain elements of our armies want this to end through their intervention, do I really have a choice?” said Mr. Keita.
Earlier, the destroying soldiers took control of Kati’s camp.
There has been anger among troops over pay and an ongoing conflict with jihadists – as well as widespread dissatisfaction with the former president.
Mr. Keita won a second term in elections in 2018, but there has been anger over corruption, mismanagement of the economy and the rise of common violence in areas of the country.
It has called for several major protests in recent months. A new opposition coalition led by the conservative Imam, Mahmoud Dicko, has called for reforms after rejecting Mr Keita’s concessions, including the formation of a unity government.
What do we know about mutiny?
It was led by Col Malick Diaw – deputy head of the Kati camp – and another commander, Gen Sadio Camara, reports Abdoul Ba of BBC Afrique in Bamako.
After taking over the camp, about 15 km (nine miles) from Bamako, the mutineers marched to the capital, where they were cheered by crowds gathering to demand the resignation of President Keita.
On Tuesday afternoon, they stormed his residence and arrested the president and his prime minister – who were both there.
The son of the president, the speaker of the National Assembly, the ministers of foreign affairs and finance were reported to be among the other officials.
The number of soldiers who joined the wall is not clear.
Kati camp in 2012 was also the focus of a mutiny by soldiers angry at the inability of the higher commanders to stop jihadists and Tuareg rebels taking control of northern Mali.