Madagascan President Hery Rajaonarimampianina stepped down on Friday, in line with the constitution, to contest elections in which he will face rivals including opposition leader and ex-president Andry Rajoelina.
Rajaonarimampianina resigned two months ahead of the November 7 vote on the Indian Ocean island that has been beset by political instability.
“The time has come for me to resign in accordance with the constitution and today I have submitted my request to the constitutional court,” he said in a brief televised speech.
Mounting protests earlier this year forced Rajaonarimampianina to accept the formation of a “consensus” government tasked with organising the election.
Demonstrators took to the capital Antananarivo’s central square between April and June over Rajaonarimampianina’s efforts to change electoral laws that opponents said were intended to favour his party.
The proposals were overturned by the courts.
But the protests morphed into a full-blown movement to oust Rajaonarimampianina. Clashes between activists and the security forces claimed two lives and left more than a dozen injured.
Also on the ballot paper will be opposition leader Marc Ravalomanana, Rajoelina’s predecessor as civilian head of state.
Rajoelina removed Ravalomanana from power in a coup in 2009.
If no candidate receives more than 50% in the first round, a second round of voting will be held on December 19.
Madagascar, a former French colony with a population of 25 million, has been endured decades of political crises and grinding poverty.
The country’s interim leader will be senate Speaker Riko Rakotovao.