 He was initially elected by the Revolutionary Council as a part of the Afro-Shirazi Party (ASP).While he was in office, in 1977, the two ruling parties of Tanzania merged.In particular, the ASP and the Tanganyika African National Union (TANU), merged to create Tanzania's ruling party, the CCM.