A court in China's restive Xinjiang region has sentenced 12 people to death for attacks that left nearly 100 people dead in July.
Dozens of civilians were killed along with more than 50 attackers when a knife-wielding gang attacked a police station and government offices.
China has seen a number of attacks this year blamed on Uighur separatists.
It has launched an "anti-terrorism" campaign, arresting scores and sentencing some to death.
Government outlet Tianshan News said 12 people had been sentenced to death for their role in the attacks in Yarkant, also known as Shache, just over two months ago.
Fifteen others were given suspended death sentences, nine were imprisoned for life and another 20 received jail sentences ranging between four and 20 years.
The report said they were convicted of "organising, leading or participating in organised terror crimes, homicide, illegal construction of explosive devices, arson, kidnapping and harming public safety".
Tianshan News said that besides carrying out "terrorist attacks", one of the attackers had run onto a road and "slashed at drivers", killing three people. Others had "intercepted, smashed and burned" passing vehicles, and "set off a large explosion targeting police officers".
In all, the authorities said 96 people were killed in the violence - 37 civilians and 59 attackers who were shot dead by security forces.
In the hours following the attack, authorities tightened security in the area, setting up checkpoints and police patrols, and cutting off internet and social media services.
Activists have disputed the official version of events, saying the violence erupted as Uighurs protested against a crackdown.
JUSTCLICK & CONNECT