In 1971 Idi Amin launched a military coup that overthrew the President of Uganda, Milton Obote, precipitating a deterioration of relations with the neighbouring state of Tanzania. Amin installed himself as President and ruled the country under a repressive dictatorship. In October 1978 Amin launched an invasion of Tanzania. Tanzania halted the assault, mobilised anti-Amin militant groups, and launched a counter-offensive.