Foreign relations of Somalia are handled primarily by the President as the head of state, the Prime Minister as the head of government, and the Minister of Foreign Affairs of the Federal Government.
According to Article 54 of the national constitution, the allocation of powers and resources between the Federal Government and the Federal Republic of Somalia's constituent Federal Member States shall be negotiated and agreed upon by the Federal Government and the Federal Member States, except in matters pertaining to foreign affairs, national defense, citizenship and immigration, and monetary policy. Article 53 also stipulates that the Federal Government shall consult the Federal Member States on major issues related to international agreements, including negotiations vis-a-vis foreign trade, finance and treaties.
Somaliland is an unrecognised de facto sovereign state that maintains consulate-level informal relations with some foreign governments.