The TFG officially comprises the executive branch of government, with the TFP as the legislative branch. The government is headed by the President of Somalia, to whom the cabinet reports through the Prime Minister. However, it is also used as a general term, for referring to all three branches collectively.
The various departments of government, such as the TFG Defense Ministry fall under the different cabinet portfolios.
Source: Wikipedia