Turkish special force police officers and ambulances are seen at the site of an armed attack January 1, 2017 in Istanbul.
At least two people were killed in an armed attack Saturday on an Istanbul nightclub where people were celebrating the New Year, Turkish television reports said. / AFP / YASIN AKGUL        (Photo credit should read YASIN AKGUL/AFP/Getty Images)
PHOTO: YASIN AKGUL/AFP/Getty Images
Turkish special force police officers and ambulances are seen at the site of an armed attack January 1, 2017 in Istanbul. At least two people were killed in an armed attack Saturday on an Istanbul nightclub where people were celebrating the New Year, Turkish television reports said. / AFP / YASIN AKGUL (Photo credit should read YASIN AKGUL/AFP/Getty Images)
Now playing
01:24
Dozens killed at upscale Istanbul nightclub
istanbul bombing Lila pkg_00003617.jpg
istanbul bombing Lila pkg_00003617.jpg
Now playing
01:49
Turkey's president vows revenge after attack
title:   duration: 00:00:00  site:   author:   published:   intervention: yes  description:     Gaziantep, Turkey
PHOTO: Anadolu Agency
title: duration: 00:00:00 site: author: published: intervention: yes description: Gaziantep, Turkey
Now playing
01:05
Video shows explosion rock wedding party
Turkish security officials work at the explosion site after a bus was struck by a bomb in Istanbul, Tuesday, June 7, 2016.
PHOTO: AP
Turkish security officials work at the explosion site after a bus was struck by a bomb in Istanbul, Tuesday, June 7, 2016.
Now playing
02:51
Police bus targeted in Istanbul bombing
baghdad deadly explosions lklv damon wrn_00011509.jpg
baghdad deadly explosions lklv damon wrn_00011509.jpg
Now playing
01:54
Almost 100 killed in series of Baghdad attacks
car bombing kills 11 in istanbul_00000204.jpg
car bombing kills 11 in istanbul_00000204.jpg
Now playing
01:49
Car bombing kills 11 in Istanbul
title: File uploaded by user duration: 00:00:00 site:  author:  published:  intervention: no description:
title: File uploaded by user duration: 00:00:00 site: author: published: intervention: no description:
Now playing
02:00
Four killed in suicide bombing
car bomb terror attack turkey arwa damon lead live_00004313.jpg
car bomb terror attack turkey arwa damon lead live_00004313.jpg
Now playing
02:23
11 suspects in custody in connection with Turkey terror attack
Rescuers carry a victim on a stretcher at the scene of a blast in Ankara on March 13, 2016.
At least 27 people were killed and 75 others wounded in a blast in the heart of the Turkish capital Ankara, local media reported, speaking of an attack. Ambulances rushed to the scene of the explosion on Kizilay square, a key hub in the city, and television pictures showed burnt-out vehicles including a bus.
 / AFP / ADEM ALTAN        (Photo credit should read ADEM ALTAN/AFP/Getty Images)
PHOTO: ADEM ALTAN/AFP/Getty Images
Rescuers carry a victim on a stretcher at the scene of a blast in Ankara on March 13, 2016. At least 27 people were killed and 75 others wounded in a blast in the heart of the Turkish capital Ankara, local media reported, speaking of an attack. Ambulances rushed to the scene of the explosion on Kizilay square, a key hub in the city, and television pictures showed burnt-out vehicles including a bus. / AFP / ADEM ALTAN (Photo credit should read ADEM ALTAN/AFP/Getty Images)
Now playing
03:16
After Ankara attack, will Erdogan escalate conflict?
ANKARA, TURKEY - FEBRUARY 17: Smoke billows from the blast site as Turkish army service busses burn after an explosion on February 17, 2016 in Ankara, Turkey. 21 people are believed to have been killed and at least 61 are said to be wounded according to the city
PHOTO: Defne Karadeniz/Getty Images
ANKARA, TURKEY - FEBRUARY 17: Smoke billows from the blast site as Turkish army service busses burn after an explosion on February 17, 2016 in Ankara, Turkey. 21 people are believed to have been killed and at least 61 are said to be wounded according to the city's governor Mehmet Kiliclar in what appeared to have been a car bomb attack on a vehicle carrying military personnel in the Turkish capital. (Photo by Defne Karadeniz/Getty Images)
Now playing
01:17
Turkey: Deadly blast linked to Kurdish militants
turkey explainer turmoil nws_00000000.jpg
turkey explainer turmoil nws_00000000.jpg
Now playing
02:13
Turkey's year of turmoil
ANKARA, TURKEY - FEBRUARY 17: A firefighter tries to put out a fire as Turkish army busses burn after an explosion on February 17, 2016 in Ankara, Turkey.   At least five people have been killed and 10 injured in an explosion in the Turkish capital of Ankara in what appeared to have been a car bomb attack on a vehicle carrying military personnel.  (Photo by Erhan Ortac/Getty Images)
PHOTO: Erhan Ortac/Getty Images
ANKARA, TURKEY - FEBRUARY 17: A firefighter tries to put out a fire as Turkish army busses burn after an explosion on February 17, 2016 in Ankara, Turkey. At least five people have been killed and 10 injured in an explosion in the Turkish capital of Ankara in what appeared to have been a car bomb attack on a vehicle carrying military personnel. (Photo by Erhan Ortac/Getty Images)
Now playing
00:56
Turkey terror attack caught on video
turkey explosion terror attack watson lok_00011315.jpg
PHOTO: Cihan
turkey explosion terror attack watson lok_00011315.jpg
Now playing
02:53
Turkish military: Deadly explosion a 'terror attack'
ankara turkey terror attack lkl damon _00023111.jpg
PHOTO: CNN
ankara turkey terror attack lkl damon _00023111.jpg
Now playing
03:09
Turkish Military: Ankara explosion a terror attack
turkey ankara explosion damon phoner_00010401.jpg
PHOTO: CNN Turk
turkey ankara explosion damon phoner_00010401.jpg
Now playing
02:12
Powerful explosion in Ankara

Story highlights

New Year raid on Istanbul club left at least 39 people dead

Latest in a string of deadly attacks, most carried out by Islamist or Kurdish terrorists

But Soner Cagaptay says each violent episode leads to arguments over who is to blame, not debate over what can be done to prevent them

Editor’s Note: Soner Cagaptay is director of the Turkish Research Program at the Washington Institute, and author of “The new Sultan: Erdogan and the crisis of modern Turkey” and “The rise of Turkey: The 21st century’s first Muslim power.” The views expressed are solely those of the author.

(CNN) —  

Turkey is so deeply polarized around the powerful persona of its president Recep Tayyip Erdogan that instead of asking why terror attacks are happening and how they can be stopped, the country’s pro- and anti-Erdogan blocks are blaming each other.

This leaves me deeply worried about Turkey and its ability to stymie further terror attacks through the vigor of its institutions and unity of its citizens.

Including last night’s attack on a nightclub in central Istanbul, which killed at least 39 people, by my count Turkey has suffered 33 major terror attacks since summer 2015. These attacks, which have killed more than 730 people, are connected to two terror groups: ISIS and the Kurdistan Workers Party, or PKK.

The PKK has a penchant for going after security targets in its attacks. Most recently, on December 11, the group carried out a devastating suicide car bomb attack on a bus carrying police officers in which at least 38 people (both civilians and security officials) were killed, and another 150 wounded.

No one has claimed responsibility for the New Year’s Eve attack in Istanbul, but it would not be surprising that ISIS were behind this attack. For weeks now, Islamists in Turkey had argued that New Year’s Eve celebrations are un-Islamic.

Shocking as it is in a country with a deep-rooted Christian legacy – St. Nicholas himself was born in Turkey in the early Christian era – Islamists have even carried out mock-style executions of Santa Claus in public to protest against New Year’s Eve celebrations, which they confuse with Christmas, and to which they object in their distorted ideology.

It would not be surprising if ISIS or jihadist individuals radicalized by ISIS carried out last night’s heartbreaking New Year’s Eve attack in Istanbul.

Fighting each other, not terrorists

But if the perpetrators of Turkey’s terror are so obvious, why does Turkey seem unable to prevent the tide of terror that it is facing? This is because the Turks are too busy fighting each other, rather than focusing on fighting terror together.

Since coming to power first as prime minister in 2003 and then as president in 2014, Erdogan has won elections on a platform of right-wing populism. He has demonized, targeted, and brutally cracked down on electorates that are not likely to vote for him.

These groups, including leftists, liberals, social democrats, Alevis (who are liberal Muslims), secularists and Kurds, together constitute nearly half of the country’s population.

Erdogan’s strategy has left Turkey deeply polarized. And coupled with Turkey’s economic growth under Erdogan, it has built him a loyal, right wing constituency, including Turkish nationalists, conservatives and Islamists, constituting the other half of the country.

The pro-Erdogan block adores the Turkish leader and thinks that he can do no wrong. At the same time, the anti-Erdogan block loathes him and believes that he can do no right.

This is also the prism through which Turks, unfortunately, view the terror attacks and the rising violence.

How to prevent tide of violence?

Following each attack, instead of discussing the security failures that may have led to the attack and what can and should be done to prevent future attacks, the Turks start blaming each other.

Nor is there ever any discussion on the foreign policy picture behind the attacks, namely that Ankara’s simultaneous wars against ISIS and the PKK ally Party for Democratic Unity (PYD) in Syria appear to be spilling over into the country, with ISIS and the PKK carrying out retaliatory-style attacks because Turkey is making gains against them in Syria.

Instead, Turkey’s polarized landscape shapes the debate in the country in the aftermath of each attack.

If ISIS carries out an attack, anti-Erdogan Turks blame him for not protecting them. And if the PKK carries out an attack, then pro-Erdogan Turks blame the opposition, and so goes the vicious cycle until the next horrible attack.

READ MORE: A bloody end to a grim year

Turkey has strong national security institutions, which have helped it weather previous terror waves, including a full-blown PKK insurgency in the 1990s. The same institutions have also helped the country avert past crises, such as civil war-like fighting on the streets between hard-right and hard-left groups in the 1970s.

But, if the Turks do not engage in an honest conversation on how to prevent the tide of violence facing them this time, I fear even these strong institutions may not be enough to halt the wave of terror and save the country from destruction.

Soner Cagaptay is director of the Turkish Research Program at the Washington Institute, and author of “The new Sultan: Erdogan and the crisis of modern Turkey” and “The rise of Turkey: The 21st century’s first Muslim power.” The views expressed are solely those of the author.