The eight Turkish soldiers are accused of helping start the coup
Greece’s Supreme Court ruled on Thursday against extraditing the eight soldiers, who have sought political asylum in Greece, saying they feared for their lives in Turkey.
Ankara says they were involved in the July 15 coup attempt against President Recep Tayyip Erdogan and branded them traitors.
The three majors, three captains and two sergeant majors fled in a helicopter to Greece after the coup attempt.
They are accused of having a significant role in the attempt as well as having links with a group which allegedly tried to assassinate President Erdogan on the night of the coup.
All eight say they were not involved and fear for their lives if extradited home.
The attempted coup in Turkey has seen hundreds of soldiers and intellectuals arrested
Foreign Minister Mevlut Cavusoglu described the ruling as a “political decision” and demanded a retrial.
He said: "We demanded that the eight soldiers be tried again. This is a political decision, Greece is protecting and hosting coup plotters.”
In further comments, he warned Turkey is considering cancelling the deal between the EU and Turkey which means Ankara has to take back migrants who have made their way from the country to Greece.
In return for taking the migrants back, Turkish citizens are meant to get visa-free travel to Europe and Turkey is meant to get a sizeable lump of cash from the bloc.
Turkish coast guards rescued migrants heading to Greece
There are still thousands of migrants in Greece
Mr Cavusoglu added: "We are evaluating what we can do.
“There is a migration deal we signed, including a readmission deal with Greece, and we are evaluating what we can do, including the cancellation of the readmission deal with Greece.”
An EU spokeswoman said it was confident its co-operation with Turkey on migration, aimed at stemming the flow of refugees into Europe, will hold firm.
Turkish Military Coup: 294 dead
Wed, July 27, 2016
THE violent military coup to overthrow Turkey's President Erdogan has 'failed' leaving at least 104 dead and more than 1,500 wounded – but reports suggest fighting is still ongoing
1 of 42
People react after they take over military position on the Bosphorus bridge in Istanbul on July 16, 2016
Greek prime minister Alexis Tsipras' office responded to Turkey's comments on Thursday and Friday that coup plotters were not welcome in Greece but the country's justice system was independent and court rulings were respected.
His office said: “The Greek government has vehemently condemned the coup attempt and supported the democratically elected government in our neighbouring country.”
But it added that "within Greece, the sole authority for relevant decisions is the independent Greek justice system, whose verdicts are obviously binding”.
Relations between Greece and Turkey, neighbours and NATO allies, have improved over the years but they remain at odds over territorial disputes and ethnically split Cyprus.
In 1996, they almost reached the brink of war over an uninhabited islet.
The two countries play an important role in the handling of Europe's worst migration crisis in decades and the EU depends on Ankara to enforce a deal to stem mass migration to Europe.