What year did Tanzania become independent?

British rule ended in Tanganyika and Zanzibar in 1961. They merged to become the United Republic of Tanganyika and Zanzibar in 1964. The country's named was shortened to the portmanteau United Republic of Tanzania in 1965.