ISTANBUL – Turkish President Recep Tayyip Erdogan has called for an overhaul of the United Nations, slamming the Security Council for failing to address the Syria conflict and other global challenges.

In an unabashed speech in Istanbul at the closing of a NATO meeting, Erdogan reiterated that “the world is bigger than five.”

“There are so many countries. There are five permanent members of the Security Council and one of those five permanent members can make a decision that binds the rest of the world. That is not fair, that is not just,” Erdogan said on Monday.

Erdogan was speaking on the final day of the 62nd annual session of the NATO Parliamentary Assembly, where the Syrian conflict and Europe’s refugee crisis featured heavily in talks.

The Security Council was widely criticized for its concentration of power and inaction in the earlier years of the Syrian war, which broke out during the Arab Spring in 2011.

“To achieve international peace and security, it’s going to be very difficult, and perhaps fail if the United Nations is not restructured,” Erdogan said.

“The United Nations was formed at the end of World War II and we cannot continue to manage this world with an organization that old.”

Erdogan also took the opportunity to call on world powers to stop supporting “terrorist organizations,” including the Kurdish People’s Protection Unit (YPG). The US calls the YPG a “moderate rebel group” and has given it military support and arms through the Syrian Democratic Forces alliance fighting ISIS militants.

“Some say … we do not recognize the YPG as a terrorist organization because they fight against Daesh,” Erdogan said, using the Arabic acronym for ISIS.

He pointed out that Jabhat Fatah al-Sham, the militant group formerly known as Jabat Al-Nusra, was also fighting ISIS and was internationally considered a terrorist organization.

“They fight against Daesh. Just because a terrorist fights another terrorist, can you call them a good terrorist? At least that’s what we are seeing in Syria and Iraq,” he said.

He also called on the world to help implement a no-fly zone in Syria, a policy that US Democratic presidential candidate Hillary Clinton suggested during the election campaign, the CNN reported.

Erdogan also used the opportunity to criticize Europe’s response to the refugee crisis, complaining that the burden had fallen heavily on Turkey’s shoulders and that the Turkish people were not given enough in return.

“As you know, since the beginning of the crisis in Syria, Turkey has taken its place at the frontline. And Turkey has never turned shy from its humanitarian duties. Turkey has opened its doors to over 3 million Syrians, and unfortunately all the promises of support made to Turkey have remained just that – promises, and only a small fraction of those premises have materialized,” he said.

In March the European Union reached a deal with Ankara, in which Turkey would essentially prevent migrants from leaving its coast for EU states, or would accept migrants sent back from EU countries for registration there.

In return, Turkey was to receive significant financial aid and its push to join the union was to be expedited.

NATO – the North Atlantic Treaty Organization – is a 28-member group that deals with security issues in the Atlantic and couples the United States with its European allies.