The president of Fiji is the head of state of the Republic of Fiji. The president is appointed by the Parliament for a three-year term under the terms of the 2013 Constitution. Although not entirely a figurehead, the role of president in the government is largely ceremonial, but there are important reserve powers that may be exercised in the event of a crisis. In addition, the president is the commander-in-chief of the Republic of Fiji Military Forces. 1987 Fijian coups d'état The office of the president was established following two military coups in 1987 that led to the proclamation of a republic on 7 October, ending the Fijian monarchy. Major-General Sitiveni Rabuka, who had masterminded the coups, formed an interim military government with himself as its head. He did not, however, take the title of president, and on 5 December appointed Ratu Sir Penaia Ganilau, the last governor-general, as the first president of the republic. 2000 Fijian coup d'état A civilian putsch instigated by George Speight led to another constitutional upheaval in 2000. President Ratu Sir Kamisese Mara resigned on 29 May rather than abrogate the Constitution, as the military, supported by the Supreme Court, had asked. (Whether or not his resignation was forced was the subject of a police investigation that continued up to the time of the 2006 coup). Commodore Frank Bainimarama took power as the head of the interim military government (as had Rabuka in 1987), until Ratu Josefa Iloilo was appointed President on 13 July. 2006 Fijian coup d'état On 5 December 2006, the military forces again overthrew the government. Bainimarama declared himself acting president; he initially said that he had assumed the office in an interim capacity, and would soon ask the Great Council of Chiefs to reinstate Iloilo, but on 17 December he insisted that he was now the president and that the Great Council should recognise him as such. Iloilo was re-instated as President on 4 January 2007.