Julius Kambarage Nyerere (ˈdʒulius kɑmbɑˈrɑɠɛ ɲɛˈrɛrɛ; 13 April 1922 – 14 October 1999) was a Tanzanian anti-colonial activist, politician, and political theorist. He governed Tanganyika as prime minister from 1961 to 1962 and then as president from 1962 to 1964, after which he led its successor state, Tanzania, as president from 1964 to 1985. He was a founding member and chair of the Tanganyika African National Union (TANU) party, and of its successor Chama Cha Mapinduzi, from 1954 to 1990. Ideologically an African nationalist and African socialist, he promoted a political philosophy known as Ujamaa.
Born in Butiama, Mara, then in the British colony of Tanganyika, Nyerere was the son of a Zanaki chief. After completing his schooling, he studied at Makerere College in Uganda and then Edinburgh University in Scotland. In 1952 he returned to Tanganyika, married, and worked as a school teacher. In 1954, he helped form TANU, through which he campaigned for Tanganyikan independence from the British Empire. Influenced by the Indian independence leader Mahatma Gandhi, Nyerere preached non-violent protest to achieve this aim. Elected to the Legislative Council in the 1958–1959 elections, Nyerere then led TANU to victory at the 1960 general election, becoming Prime Minister. Negotiations with the British authorities resulted in Tanganyikan independence in 1961. In 1962, Tanganyika became a republic, with Nyerere elected as its first president. His administration pursued decolonisation and the "Africanisation" of the civil service while promoting unity between indigenous Africans and the country's Asian and European minorities. He encouraged the formation of a one-party state and unsuccessfully pursued the Pan-Africanist formation of an East African Federation with Uganda and Kenya. A 1963 mutiny within the army was suppressed with British assistance.
Following the Zanzibar Revolution of 1964, the island of Zanzibar was unified with Tanganyika to form Tanzania. After this, Nyerere placed a growing emphasis on national self-reliance and socialism.