The president is elected by popular vote for a five-year term and may serve up to two terms. The prime minister is appointed by the president with the consent of the legislature. The constitution of 2 June 1991, established a semi-presidential government with a parliament () which can be dissolved by the President of the Republic, who is elected for a term of 5 years. The year 2000 saw a constitutional amendment reducing the presidential term from 7 to 5 years, which was enforced during the 2005 elections. Another change according to the amendment would have prevented sitting president Blaise Compaoré from being re-elected. However, notwithstanding a challenge by other presidential candidates, in October 2005, the constitutional council ruled that because Compaoré was already a sitting president in 2000, the amendment would not apply to him until the end of his second term in office, thereby clearing the way for his candidacy in the 2005 election. On 13 November Compaoré was reelected in a landslide due to a divided political opposition. In 2010, Compaoré was once again re-elected, and the term limit requirement was held to not apply to him. A proposed constitutional amendment in 2014 would have permitted him to run again, but public resistance led to the 2014 Burkinabé uprising, and Compaoré resigned on 31 October 2014. A transitional government headed by President Michel Kafondo and Prime Minister Isaac Zida took power for a one-year mandate. Elections were to have been held in October 2015, but members of the Regiment of Presidential Security launched a coup on 16 September 2015, detaining President Kafando and Prime Minister Zida. RSP commander Gilbert Diendéré named himself the head of the new military junta, but popular resistance, backed by army and gendarmerie forces not aligned with the RSP, forced his resignation and the restoration of the transitional government a week later.