poor. Recent history Transitional National Government In 2000, Abdiqasim Salad Hassan was selected as the President of the nation's new Transitional National Government (TNG), an interim administration formed to guide Somalia to its third permanent republican government. On 10 October 2004, in a session held by the Transitional Federal Parliament (TFP), Abdullahi Yusuf Ahmed was elected as President of the succeeding Transitional Federal Government (TFG), an interim federal administrative body that he had helped establish earlier in the year. He received 189 votes from the TFG Parliament, while the closest contender, erstwhile Somali ambassador to Washington Abdullahi Ahmed Addou, got 79 votes in the third round of voting. The then incumbent President of Somalia, Abdiqasim Salad Hassan, peacefully withdrew his candidature. Ahmed was sworn in a few days later on 14 October 2004. Transitional Federal Institutions The Transitional Federal Government (TFG) was the internationally recognised government of Somalia until 20 August 2012, when its tenure officially ended. It was established as one of the Transitional Federal Institutions (TFIs) of government as defined in the Transitional Federal Charter (TFC) adopted in November 2004 by the Transitional Federal Parliament (TFP). The Transitional Federal Government officially comprised the executive branch of government, with the TFP serving as the legislative branch. The government was headed by the President of Somalia, to whom the cabinet reported through the Prime Minister. However, it was also used as a general term to refer to all three branches collectively. Islamic Courts Union and Ethiopian intervention In 2006, the Islamic Courts Union (ICU), an Islamist organization, assumed control of much of the southern part of the country and promptly imposed Shari'a law. The Transitional Federal Government sought to reestablish its authority, and, with the assistance of Ethiopian troops, African Union peacekeepers and air support by the United States, managed to drive out the rival ICU and solidify its rule. On 8 January 2007, as the Battle of Ras Kamboni raged, TFG President and founder Abdullahi Yusuf Ahmed, a former colonel in the Somali Army and decorated war hero, entered Mogadishu for the first time since being elected to office. The government then relocated to Villa Somalia in the capital from its interim location in Baidoa. This marked the first time since the fall of the Siad Barre regime in 1991 that the federal government controlled most of the country. Following this defeat, the Islamic Courts Union splintered into several