ANKARA: Turkey’s Parliament on Friday approved a bill to amend the constitution to strip lawmakers of immunity, a move that paves the way for trials of several pro-Kurdish and other legislators.

A total of 376 deputies in the 550-seat assembly in Ankara voted in favor of the government-backed bill, which was enough to avoid a referendum. It now needs to be ratified by the president.

The amendment was proposed by the Justice and Development Party after the president accused the pro-Kurdish party, People’s Democratic Party, HDP, of being an arm of outlawed Kurdish rebels and repeatedly called for their prosecution on terror related charges. It puts 138 lawmakers, the vast majority of them from two opposition parties, at risk of prosecution.

Speaking in the Black Sea town of Rize moments ahead of the final round of voting, Turkish President Recep Tayyip Erdogan expressed hope the bill would be adopted, saying “my people don’t want to see criminal deputies in parliament.”

The decision coincides with a wave of violence in Turkey’s southeast following the collapse of a more than 2-year peace process between the state and the outlawed Kurdistan Worker’s Party, or PKK.

The HDP, which backs Kurdish and other minority rights, denies accusations that it is the political arm of the PKK, considered a terrorist group by Ankara and its allies.