The new Libyan Army under Gaddafi's Libyan Arab Republic fought a short border war with Egypt in July 1977, sent several thousand troops to support Idi Amin during the Uganda–Tanzania War in 1972 and again in 1978, and spent a decade trying to annex parts of northern Chad in 1978–1987.