Tanzania's former capital city is near to the Pacific Ocean.
Tanzania . It is bordered by Kenya and Uganda to the north ; Rwanda , Burundi , and the Democratic Republic of the Congo to the west ; Zambia , Malawi , and Mozambique to the south ; and by the Indian Ocean to the east . Dar es Salaam , the former capital , retains most government offices and is the country 's largest city , principal port , and leading commercial centre .