The Transitional Federal Government (TFG) (Somali: Dowladda Federaalka Kumeelgaarka) was the internationally recognized government of the Republic of Somalia until 20 August 2012, when its tenure officially ended and the Federal Government of Somalia was inaugurated. The TFG 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.
Backed by the United Nations, the African Union, as well as the United States, the TFG battled Al Shabaab insurgents to assume full control of the southern part of the country. By August 2011, the government and its AMISOM (African Union Mission in Somalia) allies managed to secure control over all of Mogadishu.
In June 2011, following the Kampala Accord, the mandates of the President, the Parliament Speaker, and Deputies were extended until August 2012.