Armenia, Azerbaijan and Russia have signed an agreement to end military conflict over the disputed enclave of Nagorno-Karabakh.
Armenian Prime Minister Nikol Pashinyan called the deal “incredibly painful both for me and both for our people”.
It comes after six weeks of fighting between Azerbaijan and ethnic Armenians.
The region is internationally recognised as Azerbaijani, but has been run by ethnic Armenians since 1994.
In that year, a truce was signed after fighting but not a peace deal.
A number of ceasefire agreements have been brokered since fighting broke out again in September, but all of them have failed.
What has been agreed?
The peace deal takes effect on Tuesday from 01:00 local time (21:00 GMT Monday).
Under the new deal, Azerbaijan will hold onto areas of Nagorno-Karabakh that it has taken during the conflict. Armenia has also agreed to withdraw from several other adjacent areas over the next few weeks.During a televised online address, Russia’s President Vladimir Putin said that 1,960 Russian peacekeepers would be deployed to patrol frontlines.
Turkish will also take part in the peacekeeping process, according to Azeri President Ilham Aliyev, who joined President Putin during the address.President Putin said the agreement would include an exchange of war prisoners, with “all economical and transport contacts to be un-blocked.”