Original: Dar es Salaam continued to serve as its capital, also when in 1964 Tanganyika and Zanzibar merged to form Tanzania.
Simplified: Dar es Salaam continued to be its capital. It remained the capital when in 1964 Tanganyika and Zanzibar merged to form Tanzania.