A court in the northwestern Kazakh city of Aqtobe has convicted 29 men in a high-profile terrorism trial.
On November 28, seven of the 29 defendants were found guilty of terrorism, murder, organizing and participating in a terrorist group, and illegal weapons possession, and were sentenced to life in prison.
Two other defendants were sentenced to 22 and 25 years in jail on the same charges.
Eighteen defendants were convicted of failing to report planned terrorist acts and sentenced to prison terms ranging from two to five years.
The other two defendants were convicted of harboring criminals and sentenced to four years each.
In June, a group of 25 alleged Islamic militants carried out attacks that killed five civilians and three members of Kazakhstan's security forces in Aqtobe.
Security forces killed 18 gunmen and arrested several others.
President Nursultan Nazarbaev has said the attacks were carried out by followers of Salafi Islam.