President Recep Tayyip Erdogan has told the European Union Turkey will not make changes to its terrorism laws required under a deal to curb migration, and declared: "we're going our way, you go yours".
His fiery speech on Friday will be a blow to any hope in European capitals that it might be business as usual with Turkey after Prime Minister Ahmet Davutoglu, who negotiated the migration deal with Europe and had largely delivered on Turkey's commitments so far, announced he was standing down.
The EU asked member states on Wednesday to grant visa-free travel to Turks in return for Ankara stopping migrants reaching Europe, but said Turkey still had to change some laws first, including bringing its terrorism laws in line with EU standards.
"When Turkey is under attack from terrorist organisations and the powers that support them directly, or indirectly, the EU is telling us to change the law on terrorism," Erdogan said in a speech at the opening of a local government office in the conservative Istanbul district of Eyup.
"They say 'I am going to abolish visas and this is the condition.' I'm sorry, we're going our way, you go yours. Agree with whoever you can agree," he said.
Erdogan is aware that visa-free travel is for many Turks the biggest benefit of Ankara's deal with the EU.
Davutoglu's departure consolidates the power of Erdogan, who has been highly critical of the EU in the past and who is seen in Brussels as a far tougher negotiating partner less closely wedded to Turkey's ambition of joining the EU in recent years.
To win visa-free travel, Turkey must still meet five of 72 criteria the EU imposes on all states exempt from visas, one of which is narrowing its legal definition of terrorism.
Rights groups say Turkey has used broad anti-terrorism laws to silence dissent, including detaining journalists and academics critical of the government.
But Ankara insists the laws are essential as it battles Kurdish militants at home and the threat from Islamic State in neighbouring Syria and Iraq.