Madagascar's president named a senior UN official on Monday to head a government of national unity in a bid to end a crisis sparked by electoral reforms.
The Indian Ocean nation has been rocked by protests that initially sought to oppose new laws the opposition said aimed at barring their candidates from taking part in elections scheduled for later this year.
"I have named Christian Ntsay, an experienced man with the skills necessary for reconciliation, as prime minister," said President Hery Rajaonarimampianina at a press conference, announcing the appointment of a career civil servant who currently works at the UN's International Labour Organisation (ILO).
The Constitutional Court had ordered President Hery Rajaonarimampianina to form a government of national unity with a "consensus prime minister" to avert a full-blown crisis. 
"The year 2018 is a year to reinforce the principle of the democratic transfer of power through the ballot box," added Rajaonarimampianina.
"I call on political leaders to respect this political settlement."
Ntsay, 57, is not a member of any political party. He has a reputation as an international expert in labour management and leadership, previously serving as Madagascar's tourism minister between 2002 and 2003. 
Former prime minister Olivier Mahafaly Solonandrasana announced his resignation to the media earlier on Monday to avoid becoming "an obstacle to the life of the nation".
"I will leave this magnificent palace, (but) I tell you this is not 'goodbye'," he added without giving details of his plans.
"I thank them for the work they have done in the past two years," said Rajaonarimampianina following the former prime minister's exit.
'We have compromised'
The island nation has a history of chronic instability since the final years of former Marxist military leader Didier Ratsiraka's rule, who was voted out in 2001. 
Since April 21, hundreds of opposition supporters have occupied the capital Antananarivo's May 13 square, initially to protest the president's proposed electoral reform package.
But after those proposals were overturned by the courts, the protests became a full-blown movement to oust Rajaonarimampianina. Violence has claimed two lives and left more than a dozen injured.
The Constitutional Court ruled that the composition of the new unity government should proportionately reflect the outcome of the last legislative elections in 2013.
However, the ruling triggered fierce debate between the government and the opposition over its interpretation.
Both sides say they hold the majority in parliament, where many legislators have switched allegiances since 2013.
"We are in the process of implementing the political deal," said Rivo Rakotovao, the head of the ruling HVM party and senate leader.
There has been no announcement of who will join Ntsay's government as ministers.
Over the weekend, Rajaonarimampianina rejected three opposition nominations for the job of "unity" prime minister. All three are members of the Mapar party led by former president Andry Rajoelina.
"We have compromised," added Rakotovao.
Neither domestic nor international efforts to resolve the crisis in the former French colony have yet borne fruit.
The most recent effort, a gathering of the National Reconciliation Council that included government and opposition delegates, finished inconclusively on Friday.
Defence Minister Beni Xavier Rasolofonirina threatened on Thursday to deploy security forces if political efforts to resolve the crisis fail.
Opposition parties had called for a prime minister to be chosen from among their parliamentary caucus and it is unclear if they or the protest movement will accept Ntsay as the new head of government. 
Related Story