A Pakistani court on Saturday sentenced a university professor to death for blasphemy under a law that critics say is often used to target minorities and liberal activists.

Junaid Hafeez, 33, was arrested in March 2013 for allegedly posting derogatory remarks against Prophet Mohammed on social media.

Blasphemy is a hugely sensitive issue in conservative Muslim-majority Pakistan, where laws against it carry a potential death sentence. Even unproven allegations have led to mob lynchings and vigilante murders.

Hafeez's sentence was announced in central city of Multan, where he was a university professor at the time of his arrest, and his counsel Asad Jamal slammed the decision as "most unfortunate".

Blasphemy is a hugely sensitive issue in Pakistan, where the acquittal of Christian woman Asia Bibi in 2018 provoked violent protests across the country
Blasphemy is a hugely sensitive issue in Pakistan, where the acquittal of Christian woman Asia Bibi in 2018 provoked violent protests across the country AFP / ASIF HASSAN

"We will appeal against this verdict," Jamal told AFP.

There was tight security in and outside Multan prison where the trial was held.

After the verdict, prosecution lawyers distributed sweets among their colleagues, who chanted "Allahu-akbar"(God is great) and "Death to blasphemers."

Government lawyer Azim Chaudhry hailed the decision while fellow lawyer Airaz Ali said it was a "victory of truthfulness and righteousness."

A policeman stands guard outside the central jail in Multan where Hafeez was sentenced to death
A policeman stands guard outside the central jail in Multan where Hafeez was sentenced to death AFP / SS MIRZA

Rights group Amnesty International said the verdict was "a gross miscarriage of justice".

"Junaid Hafeez's death sentence is a gross miscarriage of justice and the verdict... is extremely disappointing and surprising," Amnesty's Rabia Mehmood said.

"The government must immediately release him and drop all charges against him," she added. "The authorities must also guarantee his safety and that of his family and legal representatives."

Hafeez's lawyer was killed in 2014 after receiving death threats during a hearing.

About 40 people convicted of blasphemy are on death row in Pakistan, according to a 2018 estimate by the US Commission on International Religious Freedom.

The acquittal last October of Asia Bibi, a Christian woman who had spent more than eight years on death row for blasphemy, provoked violent protests across Pakistan, leaving large swathes of the country paralysed.

Bibi now lives in Canada with her family.

While many cases involve Muslims accusing Muslims, rights activists have warned that religious minorities -- particularly Christians -- are often caught in the crossfire, with blasphemy charges used to settle personal scores.