Armenia and Azerbaijan have agreed a temporary ceasefire in the conflict in the disputed Nagorno-Karabakh region.
Russia’s foreign minister announced the agreement just before 03:00 Moscow time (midnight GMT), following 10 hours of talks in the Russian capital.
Sergey Lavrov said the two countries would now begin “substantive” talks.
More than 300 people have died and thousands displaced since the latest violence in the long-running conflict broke out on 27 September.
The hostilities will be halted from midday local time (08:00 GMT) on Saturday, to allow an exchange of prisoners and the recovery of dead bodies.
Nagorno-Karabakh is run by ethnic Armenians although it is officially part of Azerbaijan.
The two former Soviet republics have blamed each other for the latest outbreak of violence – the worst in decades.
Russia has a military base in Armenia and both are members of the Collective Security Treaty Organization (CSTO) alliance.
However, Moscow also has good relations with Azerbaijan.