Roy, a US citizen of Bangladeshi origin, was hacked to death by machete-wielding assailants in February 2015.

A Bangladesh court on Tuesday sentenced five Islamist terrorists for killing US blogger Avijit Roy critical of religious fundamentalism.

Roy, a US citizen of Bangladeshi origin, was hacked to death by machete-wielding assailants in February 2015 while returning home with his wife from a Dhaka book fair.

Roy’s wife and fellow blogger Rafida Ahmed suffered head injuries and lost a finger.

 “Charges against them were proved beyond any doubt. The court gave them the highest punishment,” public prosecutor Golam Sarwar Khan said after the verdict in Dhaka.

The court also jailed one man for life in the attack, Khan said.

He said the six men convicted on Tuesday belong to the al Qaeda-inspired domestic militant group Ansar Ullah Bangla Team, which police say was behind the murders of more than a dozen secular activists and bloggers.

 Syed Ziaul Haq, a sacked army major believed to be the leader of the group and who masterminded the killing, and one other member of the group were tried in absentia and received death sentences, Khan said.

Muslim-majority Bangladesh saw a string of deadly attacks between 2013 and 2016 targeting bloggers, secular activists and religious minorities, claimed by Islamic State or al Qaeda-aligned groups.