Story highlights

(CNN)Jakarta governor Basuki Tjahaja Purnama, commonly known as Ahok, has been sentenced to two years in prison, after being found guilty of blasphemy in a trial seen as a test of Indonesia's religious tolerance.

In April, prosecutors had called for the blasphemy counts to be dropped in exchange for a lesser charge of "spreading hate," but the judges appear to have ignored that recommendation.

The controversial Chinese Christian politician was put on trial in December over accusations that he insulted Islam while campaigning for re-election. He repeatedly denied the charges.

Ahok was detained immediately after the verdict and taken to the Cipinang detention center in East Jakarta, local media reported. He said he would immediately appeal the court's decision.

The Jakarta governor sparked controversy in late 2016 after quoting a verse from the Quran to prove to his supporters that there were no restrictions on Muslims voting for a non-Muslim politician.

Read More

Almost no one who has been charged under the blasphemy law has ever escaped conviction, associate professor of Indonesian politics at the Australian National University Greg Fealy told CNN.

"The blasphemy law has really been a blight on the rule of law and democracy in Indonesia for decades," he said, adding that "the fact that Ahok was charged at all was really a product of massive street demonstrations that frightened the government into acting."

Ahok sits on the defendant's chair as he attends his sentencing hearing in Jakarta on May 9.

Growing conservatism

Indonesia is the world's largest Muslim country with 87% of the population, or more than 200 million people, saying they are followers of Islam.

While Indonesia has built a reputation as a tolerant, diverse nation, experts say Ahok's conviction is the latest example of the country's growing conservatism.

Recent years have seen large anti-LGBT protests in Jakarta in early 2016, a push to criminalize homosexual sex and passionate reactions to allegations of blasphemy.

Photos:Jakarta Protests

Muslim protesters marched on Jakarta's governor's office on Friday, November 4. Tens of thousands of Muslims descended upon the Indonesian capital demanding Jakarta governor Basuki Tjahaja Purnama -- commonly known as Ahok -- be prosecuted on accusations that he committed blasphemy.

Hide Caption

1 of 8

Photos:Jakarta Protests

An estimated 200,000 people converged on the center of the Indonesian capital to demand the arrest of its minority-Christian governor on November 4.

Hide Caption

2 of 8

Photos:Jakarta Protests

Muslim leaders broadcast their message as they march past Jakarta's governor's office on November 4.

Hide Caption

3 of 8

Photos:Jakarta Protests

Indonesian riot police were on standby in the compound of the governor's office on November 4.

Hide Caption

4 of 8

Photos:Jakarta Protests

Protesters sat atop a speaker system during the demonstration on November 4.

Hide Caption

5 of 8

Photos:Jakarta Protests

Indonesian policewomen stood guard during the protest outside Jakarta's City Hall on November 4.

Since an edited video of Ahok's remarks was released, hundreds of thousands of Muslim Indonesians have protested against him on the streets of Jakarta, with many calling for his jailing or even execution.

Roads near the Agriculture Ministry where the verdict was due to be delivered were closed from Monday evening in preparation, local media reported.

As well as being a minority ethnic Chinese Indonesian, the outgoing governor is also a Christian.

He was defeated by former Indonesian education and culture minister Anies Baswedan, a Muslim, after a campaign riven by religious tensions.

On the day of the election, the Jakarta Post editorial board described the campaign as the "dirtiest, most polarizing and divisive" ever seen in Indonesia.

Fealy said Ahok's conviction was a blow for religious tolerance in Indonesia.

"We must acknowledge that Ahok was always a special case ... (but) if you were a non-Muslim and you were considering a career in public life, you're probably more likely to think twice about that," he said.