A court in Senegal has ordered that jailed opposition leader Ousmane Sonko be reinstated on the electoral register.
This will pave way for him to run in upcoming February presidential election.
He has until 26 December to register his candidacy for the election.
In June, he was cleared of rape but convicted of “corrupting the youth” and struck off the electoral roll.
A government lawyer said it would appeal against the ruling.
AFP news agency reports that Jubilant supporters welcomed the verdict in court.
He ran in the 2019 presidential elections, coming third.
The incumbent President Macky Sall has said he will not seek re-election, following speculation that he would run for an unconstitutional third term.