Prosecutors in Senegal who had sought two years in prison for opposition leader Ousmane Sonko have filed an appeal after he was given a much lighter, two-month suspended sentence for his conviction on libel charges in a case his supporters say was politically motivated.

The outcome of Thursday's verdict allows Sonko to run for president next year though he still faces unrelated criminal charges in a pending rape case that would disqualify him if he is convicted. Sonko is widely viewed as the top opposition candidate in Senegal's elections next year.

Sonko has not yet decided whether to appeal the sentence in the libel case, his lawyer Bamba Cisse told The Associated Press.

SENEGAL'S TOP OPPOSITION POLITICIAN GETS 2-MONTH SUSPENDED SENTENCE FOR LIBEL

Sonko was also ordered to pay about $330,000 to Tourism Minister Mame Mbaye Niang, who accused the politician of defamation and public insults.

Senegalese opposition leader Ousmane Sonko

Senegalese opposition leader Ousmane Sonko addresses journalists in Dakar, Senegal, on March 8, 2021. Prosecutors in Senegal filed an appeal after Sonko was given a two-month suspended sentence. (AP Photo/Sylvain Cherkaoui, File)

Neither Sonko nor his lawyers were present on Thursday when the verdict and sentence were delivered.

SENEGAL POLICE SMASH WINDOWS OF OPPOSITION LEADER'S VEHICLE, FORCIBLY REMOVING HIM

Each of Sonko's previous court appearances led to protests in the streets of Dakar, the capital, and Sonko himself was forcibly removed from his vehicle by police on two occasions. Demonstrations have taken place not only in Dakar but in cities throughout the country.

Sonko’s supporters see the charges against him as the latest attempt to cut short his political career. Sonko finished third in Senegal’s 2019 presidential election and has called on President Macky Sall to declare publicly that he won’t seek a third term.

CLICK HERE TO GET THE FOX NEWS APP

The ruling party says Sall should be allowed to run after a constitutional change in 2016 — made while Sall was president — which changed presidential terms to five years.

Sonko also faces rape charges based on accusations from a female employee of a massage salon who said she was assaulted by him. If convicted, he faces up to 10 years in prison and would be barred from running for president. No date has been set yet for the that trial.