Armenia, Azerbaijan and Russia have signed a deal to end the military conflict over Nagorno-Karabakh region.
Armenian PM Nikol Pashinyan first announced the signing on social media.
Kremlin and Azerbaijan’s President Ilham Aliyev later confirmed the news.
Pashinyan called the move “unspeakably painful for me personally and for our people”.
Azerbaijan President Ilham Aliyev said Pashinyan had no choice but to sign the ‘historic agreement’.
Massive protest ensued in Armenia following Pashinyan’s announcement.
Angry protesters stormed government headquarters in Yerevan where they ransacked offices and broke windows.
Crowds also seized control of Parliament, calling for his resignation.
The deal would end six weeks of fierce clashes over Nagorno-Karabakh.
The ethnic Armenian region or Azerbaijan broke away from Baku’s control during a bitter war in the 1990s.
Thousands are feared killed in the recent flare-up that erupted on September 11.
Three ceasefires have failed in the past six weeks.