civil war for the first time, something Koirala had unsuccessfully attempted to do while in office. He was replaced by former Prime Minister Sher Bahadur Deuba, who was elected by a majority of members of the NepalAfter the Loktantra Andolan and the reinstatement of the Nepal House of Representatives, Pratinidhi Sabha, on 24 April 2006, Koirala was selected to become Prime Minister by the leaders of the Seven Party Alliance. The reinstated House of Representatives passed laws to strip the King of his powers and bring the Army under civilian control. Following the promulgation of the interim constitution, Koirala, as the Prime Minister, became the interim head of state of Nepal. On 1 April 2007, Koirala was re-elected as Prime Minister to head a new government composed of the SPA and the CPN (Maoist). Following the April 2008 Constituent Assembly election, the Constituent Assembly voted to declare Nepal a republic on 28 May 2008. Koirala, speaking to the Constituent Assembly shortly before the vote, said that "we have a big responsibility now"; he said that Nepal was entering a "new era" and that "the nation's dream has come true". Fifth term Girija Prasad Koirala continued again as the prime minister of Nepal for a fifth term. In the discussions on power-sharing that followed the declaration of a republic, the Nepali Congress proposed that Koirala become the first President of Nepal; however, the CPN (Maoist), which had emerged as the strongest party in the Constituent Assembly election, opposed this. At a meeting of the Constituent Assembly on 26 June 2008, Koirala announced his resignation, although it would not be finalized until after the election of a President, to whom the resignation had to be submitted. Koirala was present for the swearing in of Ram Baran Yadav, the first President of Nepal, on 23 July 2008. He submitted his resignation to Yadav later on the same day. CPN (M) Chairman Prachanda was elected by the Constituent Assembly to succeed Koirala on 15 August 2008; Koirala congratulated Prachanda on this occasion. Later activity Towards the end of his life, Koirala was leading a democratic front composed of parties that supported and promoted liberal democratic principles and aspired to establishment of a long-term democratic form of governance in Nepal. Koirala wrote Simple Convictions: My Struggle for Peace and Democracy Death Koirala died at his daughter's home on 20 March 2010 at the age of