Faced with a potential new migration wave from Afghanistaninfo-icon, Turkish President Recep Tayyip Erdogan called on European nations Thursday to shoulder the responsibility for Afghans fleeing the Taliban and warned that his country won't become Europe's refugee warehouse.

In a televised address following a Cabinet meeting, Erdogan also said his government would if necessary engage in talks with a government that could be formed by the Taliban for the stability and security of this country.

Erdogan's comments come amid an increase in recent weeks in the number of Afghans making their way into Turkeyinfo-icon across the border from Iraninfo-icon. Anti-migrant sentiment is running high in Turkey as it grapples with economic woes including high unemployment that have been exacerbated by the coronavirus pandemic, and there is little appetite in the country to take in more people.

We need to remind our European friends of this fact: Europe which has become the center of attraction for millions of people cannot stay out of (the refugee) problem by harshly sealing its borders to protect the safety and well-being of its citizens, Erdogan said.

Erdogan said his country is home to 5 million foreign nationals including 3.6 million Syrians who fled the civil warinfo-icon in the neighboring country and 300,000 Afghans. Around 1.1 million are foreigners with residence permits, he said.

In 2016, Turkey and the European Unioninfo-icon signed a deal for Turkey to stem the flow of hundreds of thousands of migrants and refugees towards Europe, in return for visa-free travelinfo-icon for Turkish citizens and substantial EU financial support. Erdogan has frequently accused the EU of not keeping its side of the bargain.

The president said he was aware of the Turkish public's unease about refugees. He reiterated that the country had reinforced its border with Iran with military, gendarmerie and police and that a wall being erected along the frontier is nearing completion.

Our state is primarily responsible for the safety and well-being of its 84 million citizens. On the other hand, we are not a society that lacks character, thinks only about itself and turns its back on those who come to our door, Erdogan said.

In reference to the millions of Syrians in Turkey, Erdogan said that those who have learnt Turkish, acquired professional skills and adapted to the country would remain in Turkey, while others would have to return to Syriainfo-icon once conditions in the war-torn country improve.

It is our responsibility toward our own citizens to help those who do not succeed to return to their homes in parallel with an improvement of the situation in their own country, Erdogan said.