On 9 December 1961 Tanganyika became independent as a Commonwealth Realm, and on 9 December 1962 it became the Republic of Tanganyika within the Commonwealth of Nations. In 1964, it joined with the islands of Zanzibar to form the United Republic of Tanganyika and Zanzibar, later in the year changed to the "United Republic of Tanzania".