Madagascar's constitutional court has thrown out parliament's bid to dismiss President Hery Rajaonarimampianina.
The court said impeachment proceedings launched last month had "no legal foundation" and that the president had not violated the constitution.
The opposition, which controls parliament, rejected the ruling.
Mr Rajaonarimampianina has been in office for 16 months and it was hoped his election would end years of political unrest in the country.
Protesters confronted police at the Constitutional High Court
Under Madagascar's constitution, an impeachment vote requires a two-thirds majority of the 151 members of the national assembly.
Mr Rajaonarimampianina had challenged the validity of last month's impeachment saying many MPs who said they had voted were not in parliament at the time.
'Ridiculous'
Reacting to Saturday's court decision to throw out the vote, the head of the president's HVM party, Rivo Rakotovao, said: "Everyone must submit to the decision of the constitutional court."
In a comment issued just after the ruling, opposition spokesman Pierre Houleder called it "ridiculous".
The parliamentary opposition to President Rajaonarimampianina is led by former strongman Andry Rajoelina.
Correspondents say the president is being attacked by both Mr Rajoelina and another former president, Marc Ravalomanana - both of whom were forced to withdraw from the 2013 presidential election won by Mr Rajaonarimampianina.
Madagascar suffered years of political turmoil beginning in 2009, when Mr Rajoelina ousted Mr Ravalomanana.
The coup left the country isolated in the international community and deprived of foreign aid.
Latest Stories
-
Vetting of ministerial nominees begins on Monday, January 13
3 minutes -
Ghanaian, Prof Wisdom Tettey is Carleton University’s 17th President and Vice-Chancellor in Canada
40 minutes -
National Cathedral can be built at a reasonable cost without state funds – Mahama
1 hour -
13-year-old girl survives alleged ritual murder attempt in Eastern Region
1 hour -
Anti-corruption campaigner lauds ORAL, commends Mahama
1 hour -
Türkish Ambassador to Ghana congratulates Vice President Opoku-Agyemang
1 hour -
GUTA dissociates itself from its president’s comment urging gov’t to retain E-levy
1 hour -
My victory is the manifestation of the will of God, says Mahama
1 hour -
We’ll strengthen the fight against corruption – Mahama
2 hours -
National Cathedral project expenditure to be probed soon – Mahama
2 hours -
Senyo Amponsah thrills audience at ‘Dzidudua’ concert
2 hours -
Food items imported to deal with drought situation to be used by SHSs – Mahama
2 hours -
Resetting our nation is anchored on restoring hope and creating opportunities for all – Mahama
2 hours -
President Mahama hints at completion of National Cathedral, says location may change
3 hours -
Kamaldeen Sulemana stars with goal and assist as Southampton beat Swansea in FA Cup
3 hours