A Senegalese judge on Thursday ordered that jailed opposition leader Ousmane Sonko be reinstated on the electoral roll, clearing the way for him to stand in next year’s presidential election.Sonko was struck off Senegal’s electoral register after being sentenced in June to two years’ imprisonment for morally corrupting a young person. The 49-year-old political thorn in President Macky Sall’s side finished third in the 2019 presidential election. But his deregistration from the electoral lists had rendered him ineligible to take part in the February polls.Sonko has been at the centre of a stand-off with the state that has lasted more than two years and sparked several episodes of deadly unrest.In ordering Sonko’s reinstatement, the judge in the capital Dakar confirmed a ruling in October by a court in Ziguinchor, the southern city where Sonko is mayor.Last month, the West African nation’s top court had disagreed with that regional court ruling.But it nevertheless decided that Sonko’s case should go back to the Dakar court.- Supporters jubilant -Sonko now has until December 26 to present his candidacy and obtain the necessary sponsorships.Jubilant supporters were in court on Thursday and shouted his name after the ruling was announced.”This decision is not a victory for Ousmane but for the whole of Senegal. It will reconcile the people with justice,” said a delighted supporter, Ibrahima Massaly.Another activist, estate agent Younouss Wague, said he was ready to campaign for Sonko, who he said was the favourite to win the upcoming presidential vote.The firebrand politician has faced a series of legal woes over the past two and a half years.He and his lawyers say the court cases are part of a plot to torpedo his political career.”We will first consult with the lawyers and we intend to go as soon as possible to the General Directorate of Elections to collect the (election) sponsorship forms,” Sonko representative Ayib Daffe told AFP.But El Hadji Diouf, lawyer for the state, said: “We will file an appeal in cassation as we did in Ziguinchor and the same procedure will take its course and the decision will be overturned.”Those celebrating today got it all wrong.”One of Sonko’s lawyers, Cire Cledor Ly, said that although the state could lodge an appeal with the Supreme Court, it would not stop Thursday’s decision being implemented immediately.”The electoral code is very clear. When the judge gives his decision, this decision must be immediately carried out,” he said. – Hunger strikes -After the regional court ruling, the General Directorate of Elections refused to give Sonko the official papers required by candidates to gather sponsorships.The national electoral commission, however, asked the body to reinstate Sonko on the electoral lists and give him the documents he needed.Sonko’s lawyers also took his case to the Economic Community of West African States (ECOWAS) in Abuja but the regional court ruled that his rights had not been violated. Sonko was convicted in absentia on June 1 of morally corrupting a young person and sentenced to two years in prison. In late July, he was arrested on other charges including fomenting insurrection, criminally associating with a terrorist body and endangering state security. He has periodically been on hunger strikes since then.He denounces the cases against him as machinations aimed at keeping him out of the presidential election. The government denies any manipulation of the justice system.Sonko is particularly popular among the under 20-year-olds, who make up half the population, striking a chord with his pan-Africanist rhetoric and tough stance on former colonial power France.