Armenia and Azerbaijan have reached an agreement for a total ceasefire in Nagorno-Karabakh.
This was stated by Russian President Vladimir Putin.
Armenian Prime Minister Nikol Pashinyan and Azerbaijani President Lham Aliyev - Putin said - signed a declaration for a "total ceasefire in the Nagorno-Karaback conflict zone" starting at midnight on Tuesday, Moscow time, (21.00 GMT).
Shortly before, the Armenian premier had announced the achievement of a "painful" agreement.
A crowd of protesters angry at the ceasefire agreement just signed by Armenia and Azerbaijan on the ceasefire in the disputed Nagorno-Karabakh region invaded the Armenian government headquarters in Yerevan, ransacking offices and shattering window panes.
This was reported by an AFP journalist.
Thousands of people gathered outside the government building and a few hundred broke in after Armenian Prime Minister Nikol Pashinyan announced that an agreement was reached.
Azerbaijani President Ilham Aliyev said the ceasefire agreement to end the fighting in the disputed Nagorno-Karabakh region amounted to a "capitulation" by Armenia.
"We forced him to sign this document," Aliyev said referring to Armenian Prime Minister Nikol Pashinyan in a televised speech.
"This is basically a capitulation."
Aliyev said the deal is of "historical significance", and that it gives Armenia a short amount of time to withdraw troops from Nagorno-Karabakh.
Russia and Turkey, an ally of Azerbaijan, would have been involved in the implementation of the ceasefire