Answer
Julius Nyerere became the first president of Tanganyika in 1962. Tanganyika gained independence from British colonial rule in 1961, and Nyerere played a crucial role in the independence movement. He led the country as president until 1964 when Tanganyika merged with Zanzibar to form Tanzania.