Parliamentarians in Madagascar have voted to impeach President Hery Rajaonarimampianina.
The constitutional court will now decide whether he has violated the constitution and can be dismissed.
The BBC’s Martin Vogl in the capital, Antananarivo, says the late night vote came as a surprise to many.
Mr Rajaonarimampianina has been in office for 16 months and it was hoped his election would end years of political unrest on the island nation.
Madagascar suffered five years of political turmoil beginning in 2009 when Andry Rajoelina ousted Marc Ravalomanana from power.
The coup left the country isolated in the international community and deprived of foreign aid.
Ahead of the parliamentary vote, the US embassy in Antananarivo urged the MPs to put the stability of the country first.
Many did not believe Madagascar’s parliamentarians would go through with impeachment and put the country’s recent relative political stability at risk.
However, the parliamentarians’ anger has grown consistently over the last few weeks. The president does not have a solid support base in parliament and it seems he and his supporters have underestimated the level of discontent there.
MPs say the president has shown a lack of respect for the institution and its internal workings. The final straw for many has been the fact that the president has refused to expressly rule out dissolving parliament as he has the power to do under the constitution.
The impeachment request now goes to the High Constitutional Court. Whichever way the judges decide, the political turbulence is likely to distract the government from the job of developing the country and could also scare away investors and donors.