One of Senegal’s most popular politicians has been jailed on charges of fraud which his supporters say are politically motivated.
Khalifa Sall, mayor of the capital Dakar, was sentenced to five years for embezzling $3.4m (£2.4m).
His conviction bars him from next year’s elections, when he had been expected to present a strong challenge to President Macky Sall – no relation.
Senegal is one of the most stable democracies in West Africa.
It is the only country on mainland West Africa never to have had a military coup.
It has seen two peaceful transfers of power following elections, most recently in 2012, when Macky Sall became president.
Khalifa Sall, 62, was arrested last year and successfully stood for parliament even though he was in detention at the time.
His parliamentary immunity was lifted so he could stand trial.
The court heard that he had used fake receipts for rice and millet, and diverted the money for “political purposes”, reports the AFP news agency.
“I feel shame for my country,” deputy Dakar mayor Cheikh Gueye told Reuters.
“This decision is meant to prevent Khalifa Sall from putting his name forward as presidential candidate.”
His lawyers have told the media they intend to appeal. However, they are unable to launch the appeal process immediately as Senegal’s court clerks are currently on strike.