List of Prime Ministers of Somalia
List

Name
Name
Portrait
Birth–Death
Election
Took office
Left office
Political party
-
-
-
-
-
-
-
-
1
Abdullahi Issa
-
1921–1988
1956 1959
29 February 1956
1 July 1960
SYL
-
-
-
-
-
-
-
-
2
Muhammad Haji Ibrahim Egal
-
1928–2002
—
1 July 1960
12 July 1960
SYL
3
Abdirashid Shermarke
-
1919–1969
—
12 July 1960
14 June 1964
SYL
4
Abdirizak Haji Hussein
-
1924–2014
1964
14 June 1964
15 July 1967
SYL
(2)
Muhammad Haji Ibrahim Egal
-
1928–2002
1969
15 July 1967
21 October 1969 (Deposed)
SYL
-
-
-
-
-
-
-
-
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
Post Abolished (21 October 1969–1 February 1987)
5
Mohammad Ali Samatar
-
1931–2016
—
1 February 1987
3 September 1990
SRSP
6
Hawadle Madar
-
1939–2005
—
3 September 1990
24 January 1991 (Deposed)
SRSP
-
-
-
-
-
-
-
-
7
Umar Ghalib
-
1930–
—
24 January 1991
May 1993 (De facto to 3 January 1997)
USC
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
Vacant (May 1993–8 October 2000)
-
-
-
-
-
-
-
-
8
Ali Khalif Galaydh
Dr. Ali Khalif Galaydh Photo.JPG
1941–
—
8 October 2000
28 October 2001
Independent
—
Osman Jama Ali Acting Prime Minister
-
1941–
—
28 October 2001
12 November 2001
Independent
9
Hassan Abshir Farah
-
1945–
—
12 November 2001
8 December 2003
Independent
10
Muhammad Abdi Yusuf
-
1941–
—
8 December 2003
23 December 2004
Independent
-
-
-
-
-
-
-
-
11
Ali Gedi
-
1952–
—
23 December 2004
30 October 2007 (Resigned)
Independent
—
Salim Ibrow Acting Prime Minister
-
1942–
—
30 October 2007
24 November 2007
Independent
12
Nur Hassan Hussein
-
1937–
—
24 November 2007
14 February 2009
Independent
13
Omar Sharmarke
-
1960–
—
14 February 2009
24 September 2010
Independent
—
Abdiwahid Gonjeh Acting Prime Minister
-
1962–
—
24 September 2010
1 November 2010
Independent
14
Mohamed Abdullahi Farmajo
-
1962–
—
1 November 2010
19 June 2011
Independent
15
Abdiweli Gaas
-
1965–
—
19 June 2011
20 August 2012
Independent
-
-
-
-
-
-
-
-
(15)
Abdiweli Gaas Acting Prime Minister
-
1965–
—
20 August 2012
17 October 2012
Independent
16
Abdi Shirdon
-
1958–
—
17 October 2012
21 December 2013
Independent
17
Abdiweli Sheikh Ahmed
-
1959–
—
21 December 2013
24 December 2014
Independent
(13)
Omar Sharmarke
-
1960–
—
24 December 2014
1 March 2017
Independent
18
Hassan Ali Khayre
-
1968–
—
1 March 2017
Incumbent
Independent

Question: Who were the first and third Prime Ministers of Somalia?
Answer: Abdullahi Issa and Abdirashid Shermarke were the first and third Prime Ministers of Somalia.