Spain’s Foreign Minister José Manuel García-Margallo | Saul Loeb/AFP via Getty Images Spain’s foreign minister: EU-Turkey deal is ‘botched job’ García-Margallo unhappy with leaving solution to refugee crisis in hands of non-EU country.

Spain’s Foreign Minister José Manuel García-Margallo said on Wednesday that the EU-Turkey deal to stem the migrant influx into Europe is a “botched job.”

García-Margallo told Cope radio that he was unhappy with the fact that Brussels had put the solution to the refugee crisis in the hands of a non-EU member state. He said he was grateful to Turkey for stopping thousands of refugees from leaving its shores on dinghies in hope of reaching Europe.

"Before, they were risking their lives and criminal gangs ... were benefiting from their misfortune," he said. "But that does not mean that this is not a botched job, and it leaves the solution in the hands of a third country."

The EU and Turkey agreed on a deal in March under which Turkey takes back migrants from Greece in exchange for financial aid and visa-free travel for Turks in the Schengen area.

However, EU's own efforts to deal with the refugee crisis have been "very inadequate," García-Margallo said, especially compared to countries like Lebanon, a tiny country of 4.5 million on the Mediterranean that has taken in over a million Syrians, fleeing war and persecution.

He said the refugee registration process in Greece is not just slow but that it simply "doesn't work." Brussels has criticized Spain for only taking in 16 asylum-seekers of 16,000 it had promised to receive under the EU relocation program.