Since Turkish Prime Minister Recep Tayyip Erdogan invited Hamas to Istanbul in 2006, shortly after the Islamist terrorist organization won parliamentary elections in the Palestinian Authority, Israel-Turkey relations have deteriorated.

Erdogan has repeatedly exploited the Palestinian issue to score propaganda points both at home and with Arab and Muslim audiences and has sacrificed a strategic alliance over his pride, especially after the Israeli incursion into Gaza in late 2008 and the Mavi Marmara affair. Why Erdogan would take cheap shots at Israel has been repeatedly discussed here and elsewhere and needs not be rehashed.

But as his vicious rhetoric increasingly flirted with anti-Israel language, there was little opposition inside Turkey to this aspect of Erdogan’s boisterous style on the international stage. Even when he brought his personal animus to a debate with Israeli President Shimon Peres, whom he abruptly abandoned on stage in Davos, or when he sought revenge against Israel at NATO by seeking to exclude Israel from NATO-Mediterranean dialogue programs, or when he set up a kangaroo court against Israeli military personnel in Istanbul, few dared label this trend for what it was: political insanity and a self-inflicted wound.

As if one could act irrationally on one front while being reasonable on all other fronts, Turkish society continued to back Erdogan. After all, his regional policies appeared briefly to pay dividends–Turkey’s economy was booming, trade with Iran was booming, relations with Syria were thawing, and popularity across the Arab world for standing up to Israel gave Turkey the brief illusion it could regain its role of regional guide it lost at the end of the Ottoman Empire.

Madness, unfortunately, cannot be compartmentalized. Erdogan’s latest outburst–in which he, as Michael Rubin pointed out, accused Israel of being behind Egypt’s military coup while citing as the only evidence a public conversation between French intellectual Bernard Henri-Levy and Israeli Justice Minister Tzipi Livni from two years ago (when she actually was in opposition)–is the acne of a conspiratorial mind that has lost touch with reality. So was, incidentally, the incessant, obsessive accusation, voiced by Erdogan and some of his ministers back in June, that the Gezi Park protests were orchestrated by foreign agents.

Turks should open their eyes to the fact that Erdogan’s obsession with conspiracies are a reflection of a man who is incapable of seeing reality in the eyes–and the increasingly disastrous foreign-policy outcomes of his decisions are one with this mindset, to say nothing of the harm he has inflicted on Turkish democratic standards. Turkey’s decision to flirt with Iran and the Muslim Brotherhood, support Islamist rebels in Syria, throw the strategic relation with Israel to the dogs, and increase tensions over Cyprus are all backfiring.

It was easy to dismiss his anti-Israel posture as clever or eccentric when Turkey’s foreign policy appeared set to conquer one success after another. Now that it is all ending in failure, maybe Turkish society can see that a man who sees dark conspiracies everywhere will not serve his country well–and that the harm he did to the Israel-Turkey relationship is part and parcel of the damage he is causing to the country as a whole.