| No. | Portrait | Name (Birth–Death) | Term of office | Political party | Election |
|---|
| Took office | Left office | Time in office |
|---|
| • Somali Republic (1960–1969) • |
| 1 | | Aden Adde (1908–2007) | 1 July 1960 | 10 June 1967 | 6 years, 344 days | SYL | 1960 |
| 2 | | Abdirashid Shermarke (1919–1969) | 10 June 1967 | 15 October 1969 † | 2 years, 127 days | SYL | 1967 |
| – | | Sheikh Mukhtar Mohamed Hussein (1912–2012) Acting [a] | 15 October 1969 | 21 October 1969 | 6 days | SYL | — |
| • Somali Democratic Republic (1969–1991) • |
| 3 | | Siad Barre[b] (1910–1995) [c] | 21 October 1969 | 26 January 1991 | 21 years, 97 days | SRSP | 1980[d] 1986 |
| • Interim Government of Somalia (1991–1997) • |
| 4 | | Ali Mahdi Muhammad[e] (1939–2021) | 27 January 1991 | 3 January 1997 | 5 years, 342 days | USC | 1991 |
Vacant (3 January 1997–27 August 200
|