The talks in Mogadishu, the Somali capital, were scheduled to start on September 27. It involved foreign minister of Uganda Wanume Kibedi, his Tanzanian counterpart John Malecela, Somalia’s Omar Arteh Ghalib, the OAU secretary general, among others.
However, they were delayed until October 2, 1972. The Ugandan and Tanzanian foreign ministers met the Somali president who told them that the conflict between their two countries was nothing but a colonialist conspiracy aimed at weakening African unity.
On October 5, 1972, after two days of talks, Kibedi, Malecela and Arteh in the presence of Ekangaki, signed an agreement which was published simultaneously in Dar-es-Salaam, Kampala and Mogadishu on October 7, 1972.
Previously Siad Barre had paid a visit to Dar-es-Salaam on October 6, 1972, and Kampala the following day.
During the visit to Uganda, Amin named a road after Siad Barre in honour of his efforts to end the conflict between Uganda and Tanzania.
The peace agreement required the two countries to withdraw their forces at least six miles away from their borders.
This was supposed to come into effect by October 9, 1972. A team of Somali peace observers would be deployed on the borders of the two countries to observe the withdrawal.
The peace accord also required both countries to stop harbouring subversive elements on their areas that cross into the other’s territory and to end all hostilities. Both countries were also required to return all the properties they captured from each other during the conflict.
On October 11, 1972, Amin announced that his troops had withdrawn six miles from the border and that fighting had ceased. A day later the Tanzanian Defence minister Edward Sokoine announced the withdrawal of the TPDF from the border area.