A court in Mali sentenced 46 soldiers from Ivory Coast to 20 years imprisonment on Friday for conspiring against the government, and three others to death in absentia.
Mali's ruling junta said the soldiers were acting as mercenaries, while Ivory Coast said they were part of a United Nations peacekeeping mission.
They were charged with attempting to undermine state security in August and convicted at a trial that began on Thursday and ended on Friday ahead of a January 1 deadline set by West Africa's main political and economic bloc to release them or face sanctions.
Ivory Coast said its troops were being held hostage and has made repeated pleas for their release. The country announced last month it would withdraw its remaining soldiers from the U.N. peacekeeping mission.
One of Africa's most volatile countries, Mali has for a decade relied on regional allies and peacekeepers to contain Islamist insurgents who have killed thousands of people and taken over large areas of central and northern regions.