Answer
Julius Nyerere's government participated in the Tanzania-Uganda War (1978-1979) to overthrow Ugandan President Idi Amin. The war was a response to Amin's invasion of Tanzanian territory and his oppressive rule in Uganda. Tanzanian forces, supported by Ugandan exiles, successfully defeated Amin's army and removed him from power.