Relations between Türkiye and Azerbaijan - the closest of allies - have suddenly turned sour in recent days, or so it seems. Baku’s strategic importance needs little emphasis: the rare source of oil and gas outside of Iran, Russia and the Middle East. Central Asia’s potential bridge to the outside world free of the above countries. New partner to Armenia in the Middle Corridor making that link. As for Turkey, you all know its strategic significance, not least as the global outlet to Azeri oil and resources of the ‘Stans.

This column has often dwelled on Azerbaijan’s contradictory situation - allied simultaneously both to Israel and to Türkiye. This combination is what helped Baku finally win the 2022 war over Karabakh. But it also bedevils relations with its two allies who, these days, hate each other. The friction came to a boil recently as Baku held the one-day Conference on Interaction and Confidence Building Measure In Asia (CICA). It turned out to be anything but. A host of Muslim countries walked out publicly in protest at the presence of Israeli prez Herzog, including Turkey’s foreign minister.

Why does Azeri President Aliyev insist on keeping close ties to Israel at such high expense to relations with others? Simply because Israel offers the best guarantee of security against southern neighbor Iran’s interference. Why does Israel bother to keep such close ties with such a far-flung ally? Because Azerbaijan offers a threat to Iran’s northern border since the Iranian province of Azerbaijan would love to split off and join its ethnic cousins in Baku. Result, Aliyev must maintain alliance both to Turkey and Israel, sadly resulting in the kind of outcome we saw at the conference. Even Herzog’s use of an Azerbaijani flight to get there was made into a huge issue.

Added to that, a week ahead of the conference, Baku decided to re-impose a ban on women wearing head-covering to schools with students being expelled or denied entry for their hijabs - causing visuals aplenty to appear on the world’s news outlets and social media. Turkish media outlets objected loudly. Why does this decision by Baku affect relations with Turkey? Because, Erdogan made his reputation restoring the right of women to wear hijab in government buildings, as an apostle of free expression. Until he came along, Türkiye was a strictly secular state. You couldn’t wear hijabs to government buildings of any kind, and women rarely wore them outside. These days, It is a country full of women sporting long tunics and head-scarves everywhere. And Erdogan is now scarcely a friend of free speech.

Aliyev is clearly making a counter-statement, one that many Turks and others easily interpret as a provocation to Erdogan. Now, to be clear, Aliyev’s situation is somewhat different. His population is Shiite (though ethnically Turkic) with the fount of Shiism, Iran, on his border. He isn’t so much making a religious statement as a geo-political one to keep out Tehran’s influence. Unlike Aliyev, Erdogan could afford to push the country’s center of gravity in a religious direction without worrying about cross-border strategic influences - Iran being Shiite and Turkey Sunni - while other neighbors of Turkey had no comparable leverage. A country more comparable to Azerbaijan might be Tajikistan which is equally strict on limiting Islamic freedoms because of Afghanistan on the border. Uzbekistan, too, has maintained strict rules owing to Afghan proximity and Islamic terror incidents in the past.

Turkey aside, these are ex-Soviet countries with a long history of imposed secularism. They’re dealing with religious vacuums waiting to be filled as happened in Afghanistan and Chechnya. The hidden irony here is that the ex-Soviet Stans are also guarding against a more unlikely source of Islamist destabilization - from Russia. Yes you heard that right. Currently, Moscow has surprisingly close relations with the Taliban which can easily be weaponized. Chechnya could also function to that purpose. In the 1990s, Moscow secretly trained jihadists on the borders of Uzbekistan and Kazakhstan, which threatened those countries with instability, and led to them accepting Russian bases for protection. (See the book ‘The Rise of Militant Islam In Central Asia’ by Ahmed Rashid). Kazakhstan’s current response to this is to modestly encourage mosque-going and fill the vacuum artificially under controlled conditions. Turkmenistan requires women to wear very specific headscarves.

Where does that leave Türkiye and Azerbaijan? There will be no damage to their relations because neither can afford it but there is one other point of tension. Turkey has just opened borders with Armenia, the first time in years. Erdogan would like the Middle Corridor deal to get going quickly. The deal established peace between Armenia and Azerbaijan with Trump presiding. It’s something the US President cares about deeply as a certified example of Nobel-worthy peacemaking and Erdogan feels the pressure to deliver for him. Aliyev can afford to wait and bargain, since his country has little dependence on the US and had, after all, been at war with Armenia for some decades.

Right now, Erdogan has minimal leverage. He cannot afford to pick a fight with his close ally Aliyev for fear of fraying the budding Turkic continuum into Central Asia. Nor can he afford the distraction as he is also under tremendous pressure at home with the recent banking scandal and the massive floods in Istanbul. He may emerge deeply weakened from those, not least because his government was so inept in dealing with the earthquakes in the south just before the 2023 Presidential elections. Those elections were widely criticized by observers for being flawed.