The war ended on 3 June, when the TPDF reached the Sudanese border and expelled the last pro-Amin forces from Uganda. Remnants of the Uganda Army subsequently reorganised in the north-western border regions and launched a rebellion against the new Ugandan government in 1980. The TPDF withdrew from the country in 1981.