Turkish foreign policy under President Recep Tayyip Erdogan has moved in cycles. Ideological ambition, most often expressed through support for Islamist movements and causes, has repeatedly pushed Ankara into quarrels with its neighbors and partners. When the resulting isolation grows too costly, Erdogan turns to realpolitik and repairs the damage. He has completed this cycle twice since the Arab Spring. The current rift with Azerbaijan, Turkey’s closest ally, suggests a third cycle is underway, but it also shows how the pattern has changed. Islamism, long an instrument Erdogan could pick up and set down as circumstances required, has become an electoral constraint on his government, and the dispute with Baku has opened a fault line inside Turkish politics itself.
A Recurring Cycle
The baseline for the cycle is the “zero problems with neighbors” doctrine, which Ahmet Davutoglu, then Erdogan’s chief foreign policy adviser, first set out in February 2004. It promised to resolve Turkey’s regional disputes through trade, economic interdependence and diplomatic engagement, and for most of the following decade it worked. Turkey’s exports grew rapidly, its diplomats mediated between Syria and Israel, and Ankara presented itself as a model for the Muslim world that was also a candidate for European Union membership.
The Arab Spring broke that model. Ankara backed Muslim Brotherhood-aligned movements across the region and, after the Egyptian military removed Mohamed Morsi in 2013, broke with Cairo and alienated Saudi Arabia and the United Arab Emirates, which saw the Brotherhood as a threat to their own systems. Relations with Israel had already collapsed after the 2010 Mavi Marmara raid, and relations with Russia collapsed after Turkey shot down a Russian fighter jet over the Syrian border in November 2015. Ibrahim Kalin, then Erdogan’s chief adviser, described the result as “precious loneliness,” a position he defended as principled. By 2016, the loneliness had become untenable. Davutoglu was pushed out as prime minister; his successor Binali Yildirim pledged to increase Turkey’s friends and reduce its enemies, and within weeks Ankara restored relations with Israel and repaired its ties with Moscow.
The second cycle followed quickly. Turkey sent troops to Qatar during the 2017 Gulf blockade, convened Muslim leaders against the U.S. embassy move to Jerusalem, expelled Israel’s ambassador in 2018, fought the UAE and Egypt by proxy in Libya, faced down Greece in the eastern Mediterranean in 2020 and threatened to suspend ties with the UAE over the Abraham Accords. By 2021, with the lira under severe pressure and Turkey shut out of the emerging eastern Mediterranean energy architecture, Ankara reversed course again. It opened talks with the UAE, Saudi Arabia, Egypt, Israel and Armenia. Israeli President Isaac Herzog visited Ankara in March 2022, Turkey and Egypt exchanged ambassadors in July 2023, and Greece and Turkey signed a declaration on friendly relations that December.
The Pragmatist Behind the Ideology
The resets were possible because Erdogan’s Islamism and expansionist ambitions have always been negotiable when the price of holding to them rises high enough. The 2016 settlement with Israel came only a few years after Erdogan had called Israel a terrorist state. In March 2021, as part of the outreach to Cairo, his government asked Egyptian opposition television channelsoperating from Istanbul, most of them aligned with the Muslim Brotherhood, to tone down their criticism of President Abdel Fattah el-Sisi. In April 2022, a Turkish court transferred the trial of the suspects in the murder of the journalist Jamal Khashoggi to Saudi Arabia, effectively ending the case, and Erdogan visited the kingdom three weeks later. Four years on, Turkey signed a mutual defense pact with Riyadh and Islamabad.
The same calculation governs Ankara’s approach to China. In 2009, Erdogan described China’s treatment of the Uyghurs as genocide. Since then, as Chinese loans and investment have become more important to the Turkish economy, his government has largely fallen silent on Xinjiang, and Uyghurs in Turkey have found residency harder to obtain.
The clearest recent example concerns Israel itself. In May 2024, Turkey announced a suspension of all trade with Israel, and official Turkish data show no bilateral trade since. Much of that trade appears to have been rerouted rather than ended. In the first eight months of 2024, Turkish exports to the Palestinian territories rose more than fivefold, with goods declared for Palestine clearing through Israeli ports, and exports to Greece spiked as Turkish goods were re-exported onward. UN trade data ranked Turkey as Israel’s fifth-largest supplier in 2024, at $2.86 billion, figures Ankara disputes. Shipping has followed the same pattern. Turkish-flagged vessels are barred from Israeli ports, but most of the Turkish-owned fleet sails under foreign flags, and ship-tracking data compiled by the Turkish daily BirGün counted 456 voyages from Turkish ports to Haifa and Ashdod in the first nine months of 2025, most of them on Panamanian- and Liberian-flagged ships. Azerbaijani crude, meanwhile, continues to reach Israel through the Baku-Tbilisi-Ceyhan pipeline, which terminates on Turkey’s Mediterranean coast. In 2025, Israel’s imports of Azerbaijani oil loaded at Ceyhan rose to a three-year high, supplying nearly half of Israel’s crude imports. Ankara’s position is that it does not control the destination of oil sold by third parties through the pipeline. In practice, Turkey has chosen to protect its exporters, its shipping industry, its role as an energy transit state and its alliance with Baku over the full enforcement of a boycott it declared on ideological grounds.
From Instrument to Constraint
What has changed since the last reset is the domestic weight of the Islamist agenda. In the March 2024 municipal elections, Erdogan’s Justice and Development Party (AKP) finished second nationwide for the first time since its founding, with 35.5 percent to the Republican People’s Party’s 37.8 percent. The New Welfare Party (YRP), led by Fatih Erbakan, son of Turkey’s first Islamist prime minister, broke with the AKP and won 6.2 percent, becoming the third-largest party. Its campaign hammered the government for continuing to trade with Israel during the Gaza war. Within days of the vote, Ankara restricted exports of 54 product categories to Israel, and in early May it suspended trade entirely.
The sequence illustrates a new dynamic. For most of Erdogan’s tenure, the AKP owned the religious conservative vote and could adjust its foreign policy without fear of losing it. The YRP’s rise means the AKP now faces a credible challenger on its religious flank, one that punishes every pragmatic concession as hypocrisy. At the same time, Erdogan governs in alliance with the Nationalist Movement Party (MHP), whose base is defined by Turkish nationalism and pan-Turkic solidarity rather than by religion. The government’s room for maneuver depends on balancing these two constituencies.
The Azerbaijan Rift
Azerbaijan sits at the intersection of these pressures. For pan-Turkic nationalists, it is the closest ally Turkey has, the partner both governments describe as “one nation, two states.” For the Islamist camp, it is a secular state with one of the closest relationships with Israel in the Muslim world.
The strain predates the current dispute. On March 5, at the start of the war with Iran, Iranian drones struck the airport in Azerbaijan’s Nakhchivan exclave. The following day, Azerbaijan’s security services said they had foiled a Revolutionary Guard plot against the Baku-Tbilisi-Ceyhan pipeline, the Israeli embassy and a synagogue. Ankara condemned the attack but took no action under the 2021 Shusha Declaration, which commits the two states to act jointly against threats from third countries. At the same time, claims that Baku had assisted Israel’s war against Iran spread so widely on Turkish social media that the government’s Center for Combating Disinformation publicly warned against “provocation” targeting Azerbaijan.
The current crisis began on Sept. 21, when Azerbaijan’s cabinet adopted school uniform rulesbarring clothing inconsistent with the secular character of public education. The rules do not mention the hijab, but schools began turning away students and teachers who wore headscarves, protests followed, and police detained 37 people. The next day, Erdogan condemned school headscarf restrictions at the UN General Assembly without naming Azerbaijan. Turkish Islamist groups held protests outside Azerbaijani missions, and the pro-government daily Yeni Akit ran a column under the headline “Wherever there is a headscarf ban, there is certainly a Zionist hand.” On Oct. 12, Oktay Saral, a chief adviser to Erdogan, called on Baku to “reverse this mistake as soon as possible.” Two days later, Erbakan accused the government of applying a double standard by criticizing headscarf restrictions in Europe while staying quiet about Azerbaijan.
Baku’s response was sharp. President Ilham Aliyev had already told his party congress on Oct. 2 that no one should “poke their nose into our lifestyle” and that Azerbaijan had bought its weapons with its own money. The ruling New Azerbaijan Party publicly rebuked Saral and AKP lawmakers. On Oct. 19, a Baku court issued arrest warrants in absentia for seven people living in Turkey who had organized protests outside Azerbaijani missions, and on Oct. 21 Azerbaijan barred 31 Turkish citizens from entering the country. The list included Erbakan, a deputy chairman of the Kurdish Islamist Free Cause Party, a sitting member of parliament and several Islamist journalists and writers. Baku also asked Ankarato dismiss Saral and to prosecute social media commentators who had insulted Aliyev. Pro-government Azerbaijani outlets went further, accusing Foreign Minister Hakan Fidan of encouraging unrest during his visit to Baku, a charge the Turkish embassy called a deliberate lie.
The headscarf issue sits on top of deeper disagreements. Baku views Ankara’s movement toward normalization with Armenia, which Turkey had previously tied to a comprehensive Armenian-Azerbaijani peace settlement, as a departure from strategic coordination. More broadly, Ankara treats the alliance as one in which Turkey is the senior partner, while Azerbaijan, like the states of Central Asia, places its freedom of action above any single relationship. Fuad Shahbazov of the Center for European Policy Analysis notes that Baku rejects Turkish leadership of the Turkic world built around a shared identity with strong Islamic elements, and distrusts the politicization of religion.
A Fault Line in Turkish Politics
The dispute has divided Turkish politics along lines that do not track the usual government-opposition divide. The sharpest criticism of Baku has come from the Islamist camp: the YRP, Islamist civil society groups, pro-government religious media and figures within the AKP itself, Saral among them. Yet the criticism has also crossed into the secular opposition. Kemal Kilicdaroglu of the Republican People’s Party urged Baku to let women choose their own clothing, and CHP lawmaker Oguz Kaan Salici argued that defending headscarf freedom in Azerbaijan followed from the same principle as opposing compulsory veiling in Iran, while noting that the AKP routinely tells foreign critics not to interfere in Turkey’s internal affairs. Turkey’s own experience is relevant here. Turkey banned headscarves in public institutions until 2013 and in secondary schools until 2014, and it was Erdogan’s government that lifted those bans. For many religious conservatives, Azerbaijan’s rules recall a period of their own lives.
The defense of Baku has come from the nationalist and state establishment. MHP leader Devlet Bahceli called for common sense and for members of the Organization of Turkic States to respect one another’s sovereignty. Former Prime Minister Binali Yildirim, who chairs the organization’s Council of Elders, said that Saral did not speak for Erdogan or the Turkish state and warned that anyone interfering in Azerbaijan’s internal affairs would be punished. AKP deputy chairman Kursad Zorlu urged respect for each country’s decisions and directed the public to Erdogan and the Foreign Ministry as the only authoritative voices on foreign policy. AKP spokesman Omer Celik said the groups targeting Azerbaijan had no connection to the government. Fidan, speaking in Baku on Oct. 15 after meeting Aliyev, said the strategic relationship came first and described some of the problems as manufactured.
Erdogan himself has said nothing publicly about Azerbaijan, but he has acted. On Oct. 21 he telephoned Aliyev to invite him to the Organization of Turkic States summit in Ankara and spoke of deepening cooperation on the basis of brotherly ties. Four days later, he dismissed Saral. No official reason was given, and Saral said only that he had “absolute respect for the president’s decision,” but the move met one of Baku’s principal demands. An Azerbaijani source told Middle East Eye that the dismissal would encourage Aliyev to attend the summit, and that before it the chance had been “less than fifty percent.”
The episode captures Erdogan’s approach in miniature. He gave up an adviser who had voiced the position of his own religious base in order to preserve the alliance with Baku, and he did so without public comment. Silence allows the president to avoid a confrontation with a religious constituency the YRP is competing for, while the decision itself signals to Baku that Ankara does not want the dispute to go further.
The Northern Cyprus Precedent
The risks of letting the Islamist agenda lead are already visible in the one territory most dependent on Ankara. In 2025, the Turkish Cypriot administration moved to lift its ban on headscarves in high schools, under what teachers’ unions and the opposition described as pressure from Ankara and the AKP. Thousands marched through northern Nicosia chanting “Cyprus is secular and will remain secular.” In October 2025, Turkish Cypriots voted out Ersin Tatar, the leader most closely aligned with Ankara, in a landslide. The episode suggests that the religious agenda that mobilizes part of Erdogan’s base at home can generate resistance among secular Turkic populations that otherwise look to Turkey as a patron.
Outlook
The structural incentives point toward another reset. Turkey’s economy, with inflation still near 30 percent, depends on European markets and Western and Gulf capital. Its strategic value to Washington and Brussels rests heavily on its role as a corridor linking Europe to the Caspian and Central Asia, a role that runs through Azerbaijan. The two governments signed defense contracts worth about $500 million on Sept. 30, at the height of the dispute, and Azerbaijan supplies roughly a fifth of Turkey’s natural gas imports. Elsewhere, Ankara faces a hardening alignment among Greece, Cyprus and Israel in the eastern Mediterranean, competition with the UAE in Sudan, Somalia and Yemen, and a defense pact with Saudi Arabia and Pakistan whose value remains untested.
With Saral’s dismissal, the reset with Baku has already begun. The summit in Ankara on Oct. 29 and 30, where Turkey assumes the Organization of Turkic States chairmanship from Azerbaijan, will show whether Aliyev accepts it, and whether the repair extends beyond a single relationship. Past cycles suggest it will. The difference this time is the domestic cost. In 2016 and 2021, Erdogan could reverse course with little risk of losing religious conservative voters. With the YRP positioned to punish every concession and Islamist media and civil society invested in the confrontation with Baku, a third reset will be harder to sell at home. The more Ankara’s foreign policy is shaped by competition on its religious flank, the longer each cycle of isolation is likely to last, and the more Turkey stands to lose before the next one ends.
