section_path: History/Contemporary era
section_name: Contemporary era
paragraph_text: Contemporary era
  
  On 30 August 2001, the East Timorese voted in their first election organised by the UN to elect members of the Constituent Assembly. On 22 March 2002, the Constituent Assembly approved the Constitution. By May 2002, more than 205,000 refugees had returned. On 20 May 2002, the Constitution of the Democratic Republic of Timor-Leste came into force and Timor-Leste was recognised as independent by the UN. The Constituent Assembly was renamed the National Parliament, and Xanana Gusmão was elected as the country's first president. On 27 September 2002 the country became a UN member state.
  
  In 2006, a crisis of unrest and factional fighting forced 155,000 people to flee their homes; the United Nations sent in security forces to restore order. The following year, Gusmão declined to run for another term. While there were minor incidents in the build-up to the mid-year presidential elections, the process was peaceful overall and José Ramos-Horta was elected president. In June 2007, Gusmão ran in the parliamentary elections and became prime minister at the head of the National Congress for Timorese Reconstruction (CNRT) party. In February 2008, Ramos-Horta was critically injured in an attempted assassination; Prime Minister Gusmão also faced gunfire separately but escaped unharmed. Australian reinforcements were immediately sent to help keep order. In March 2011, the UN handed over operational control of the police force to the Timor-Leste authorities. The United Nations ended its peacekeeping mission on 31 December 2012.
  
  Francisco Guterres of the centre-left Fretilin party became president in May 2017. The leader of Fretilin, Mari Alkatiri, formed a coalition government after the July 2017 parliamentary election. This government soon fell, leading to a second general election in May 2018. In June 2018, former president and independence fighter, Taur Matan Ruak, became the new prime minister. José Ramos-Horta again became president on 20 May 2022 after winning the April 2022 presidential election runoff against Francisco Guterres.