Turkey’s Constitutional Court (AYM) on Thursday rejected a request for release made by Pro-Kurdish Peoples’ Democratic Party Co-chair Selahattin Demirtaş, who has been in jail since November of last year on terrorism charges.

The top court said Demirtaş’s arrest was within the law and that there was no violation of freedom of expression or his political rights.

Demirtaş was arrested on Nov. 4, 2016 when the government launched a crackdown on pro-Kurdish politicians following a failed coup attempt, which critics say has been expanded to target all government opponents and dissenting voices.

The Justice and Development Party (AKP) government accuses the HDP, the nation’s third-largest party in Parliament, of links to the outlawed Kurdistan Workers’ Party (PKK). The HDP denies the accusation.

According to AP, New York-based advocacy group Human Rights Watch, criticized Demirtaş’s trial, calling it “part of a wider pattern of repression against government critics.”

“Holding the leader of a major opposition party in pre-trial detention for over a year on flimsy charges is another example of the political abuse of the criminal justice system we are repeatedly seeing in Turkey,” said Hugh Williamson, Human Rights Watch’s director for Europe and Central Asia.

Demirtaş’s lawyer Yusuf Alataş told the Hürriyet Daily News that the case “is a collection of 31 different summaries of proceedings that have been compiled into a joint case.”

“The main accusation is that he is the leader of an armed organization, which is a terror offense. All of the proceedings in this case are about Demirtaş’s speeches that he delivered as a politician. None of them contain any call for violence or an act of violence,” Alataş said.

The Turkish Parliament stripped lawmakers of legal immunity last year, paving the way for the arrest of several HDP legislators — including Demirtaş and former Co-chairwoman Figen Yüksekdağ — on terror-related charges.

The arrests follow the collapse of a fragile peace process between the state and the PKK in 2015. The group is considered a terror organization by Turkey, the United States and the European Union.

Yüksekdağ lost her seat in Parliament earlier this year after an appeals court confirmed her 2013 conviction for engaging in terrorist propaganda, and she later stepped down as the HDP’s co-leader.