| 1 | A | B | C | D | E | F | G | H |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2 | List of Prime Ministers of Tanzania - Prime Ministers of Tanzania |  |  |  |  |  |  |  |
| 3 | № | Prime Minister (Birth–Death) | Portrait | Tenure | Tenure | Political affiliation (at time of appointment) | Political affiliation (at time of appointment) | President(s) |
| 4 | № | Prime Minister (Birth–Death) | Portrait | Took office | Left office | Political affiliation (at time of appointment) | Political affiliation (at time of appointment) | President(s) |
| 5 | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) | Post abolished (1 November 1964 – 17 February 1972) |
| 6 | 1 | Rashidi Kawawa (1924–2009) | - | 17 February 1972 | 13 February 1977 | - | Tanganyika African National Union | Nyerere |
| 7 | 1 | Rashidi Kawawa (1924–2009) | - | 17 February 1972 | 13 February 1977 | - | Chama Cha Mapinduzi | Nyerere |
| 8 | 2 | Edward Sokoine (1938–1984) | - | 13 February 1977 | 7 November 1980 | - | Chama Cha Mapinduzi | Nyerere |
| 9 | 3 | Cleopa Msuya (1931–) | - | 7 November 1980 | 24 February 1983 | - | Chama Cha Mapinduzi | Nyerere |
| 10 | (2) | Edward Sokoine (1938–1984) | - | 24 February 1983 | 12 April 1984 (died in office.) | - | Chama Cha Mapinduzi | Nyerere |
| 11 | 4 | Salim Ahmed Salim (1942–) | Salim.JPG | 24 April 1984 | 5 November 1985 | - | Chama Cha Mapinduzi | Nyerere |
| 12 | 5 | Joseph Warioba (1940–) | - | 5 November 1985 | 9 November 1990 | - | Chama Cha Mapinduzi | Mwinyi |
| 13 | 6 | John Malecela (1934–) | - | 9 November 1990 | 7 December 1994 | - | Chama Cha Mapinduzi | Mwinyi |
| 14 | (3) | Cleopa Msuya (1931–) | - | 7 December 1994 | 28 November 1995 | - | Chama Cha Mapinduzi | Mwinyi Mkapa |
| 15 | 7 | Frederick Sumaye (1950–) | - | 28 November 1995 | 30 December 2005 | - | Chama Cha Mapinduzi | Mkapa Kikwete |
| 16 | 8 | Edward Lowassa (1953–) | - | 30 December 2005 | 7 February 2008 | - | Chama Cha Mapinduzi | Kikwete |
| 17 | 9 | Mizengo Pinda (1948–) | - | 9 February 2008 | 5 November 2015 | - | Chama Cha Mapinduzi | Kikwete |
| 18 | 10 | Kassim Majaliwa (1961–) | - | 20 November 2015 | Incumbent | - | Chama Cha Mapinduzi | Magufuli |

Question: When was Edward Sokoine serve as the prime minister of Tanzania?
Answer: Edward Sokoine (1938 – 1984) was a two-term prime minister of Tanzania, serving from 13 February 1977 to 7 November 1980 and again from 24 February 1983 to 12 April 1984.