Pashinyan led Armenia through the 2020 Nagorno-Karabakh War, the most recent and significant outbreak of violence due to the Nagorno-Karabakh conflict between Armenia with the self-proclaimed Republic of Artsakh and its neighbor Azerbaijan. The war, which was ended after 44 days of fighting by a trilateral ceasefire agreement signed by Pashinyan on 9 November 2020, resulted in significant human, material and territorial losses for the Armenian side. Following the war, Pashinyan faced protests and calls for his resignation for signing a Russian-brokered truce with Azerbaijan. On 25 February 2021, the Chief of the General Staff of the Armenian Armed Forces Onik Gasparyan and more than 40 other top-ranking generals demanded Pashinyan's resignation in what he described as a coup attempt, causing a political crisis that ended with Gasparyan's dismissal. On 25 April 2021, Pashinyan announced his formal resignation to allow snap elections to be held in June, although he declared that he would remain as acting prime minister until elections are held. His party won the 2021 election, receiving more than half of all votes.