Ibrahim Boubacar Keïta has resigned his position as President of Mali, a West African country.
In a televised address, Mr Keïta said he was also dissolving the government and parliament.
“I want no blood to be spilled to keep me in power,” he added.
The resigned president was earlier on Tuesday toppled by the military in the country which arrested him and the Prime Minister Boubou Cissé. They were then taken to a military camp near the capital Bamako.
His resignation has been seen as a script written by his captors as a condition not to kill him and to grant him wavers after the mutiny that saw him out of office.
“If today, certain elements of our armed forces want this to end through their intervention, do I really have a choice?” said Mr. Keïta.
“I hold no hatred towards anyone. My love of my country does not allow me to,” he added. “May God save us,” he prayed.
Earlier on Tuesday, the mutinying soldiers took control of the Kati camp. There has been anger among troops about pay and over a continuing conflict with jihadists- as well as widespread discontent with the former president.
There has been anger against Keita’s government since he won a second tenure in 2018 leading to several crises.