Yerevan: Opposition leader Nikol Pashinyan was elected Armenia's prime minister on Tuesday, capping a peaceful revolution driven by weeks of mass protests against corruption and cronyism in the ex-Soviet republic.
Moscow, which has a military base in Armenia, is wary of an uncontrolled change of power which would pull the country out of its orbit, but Pashinyan has offered assurances that he will not break with the Kremlin.
The election of Pashinyan, a former newspaper editor who spent time in prison for fomenting unrest, marks a dramatic rupture with the cadre of rulers who have run Armenia since the late 1990s.
Pashinyan, born in 1975, spearheaded a protest movement that first forced veteran leader Serzh Sarksyan to step down as prime minister and then pressured the ruling party to abandon attempts to block his election as prime minister, the country's most powerful post.
In a vote in parliament on Tuesday, 59 lawmakers backed Pashinyan's candidacy, including some from the ruling Republican Party, with 42 voting against.
A central square in the capital, where Pashinyan's supporters gathered to watch the voting on huge television screens, erupted into joy when the result was shown.
The tens of thousands of people in Republic Square shouted "Nikol!" and white doves were released into the air.
People hugged and kissed each other.
"We won! We made history today!" said Gurgen Simonyan, 22, a student in the crowd.
Pashinyan's protest movement was sparked when Sarksyan, barred by the constitution from seeking another term as president, became prime minister instead.
Many Armenians saw that as a cynical ploy by Sarskyan to extend his hold on power.
In a speech to parliament moments before the vote, Pashinyan called on Armenia's people to come together behind the new government he will lead.
"The page of hatred should be turned," he said, adding: "May God help us."
Armenia is a country of about three million people nestled in mountains between Iran, Turkey, Georgia and Azerbaijan.
Since it emerged as an independent state after the collapse of the Soviet Union, Armenia, a majority Christian country, has been locked in a territorial conflict with mainly-Muslim Azerbaijan, and under economic blockade from Turkey.
Its isolation led it to depend heavily on former colonial ruler Moscow.
Russian President Vladimir Putin has in the past resisted popular revolts in ex-Soviet states, particular in Georgia and Ukraine, viewing them as a ploy by Washington to encroach on Moscow's sphere of influence.
But throughout Armenia's wave of protests, Moscow has remained publicly neutral, and Pashinyan has consistently said he viewed Moscow as a vital ally.
He said on Tuesday Armenia would stay in a regional collective security organisation headed by Russia and that he hoped for a meeting with Putin.
"Both sides in Moscow and Yerevan have learned a new script," said Thomas de Waal, a specialist on the region with Carnegie Europe, a think tank.
"Russian officials have insisted that they respect Armenians’ right to peaceful change," he said.
"For his part, Pashinyan and his fellow protest leaders told their supporters to avoid anti-Russian or pro-EU slogans."
Pashinynan faces tough challenges.
The civil service and security apparatus are dominated by allies of his ousted predecessor.
He has said his first step will be to hold an early parliamentary election. In the meantime, he said he would carry out root-and-branch reforms to cut out graft and cronyism.
He said he would fire some holdovers from the ruling elite, among them the defence minister, but said there would be no "pogrom."
He must also reckon with a parliament where the Republican Party, allied to Sarskyan, holds a majority of seats and is sceptical about his revolution.
Vahram Baghdasaryan, head of the Republican Party in parliament, said for the sake of unity it was backing Pashinyan for prime minister but it had concerns about his fitness to run the country.
"I hope we are mistaken," said Baghdasaryan, an ally of Sarskyan.