With its apprehend warrants and visa freezes, the Turkey-U.S. standoff appears more like a flashpoint between adversaries than a difference of views among friends.

That's because the crisis, which sent Turkish marketplaces reeling on Monday, blew up only after years of tension and mutual recrimination. The two countries have been trading accusations that are increasingly hard to square with their status as NATO allies.

Read more: How U.S ., Turkey got to this standoff — a QuickTake Q& A

When Turkey's president was the target of a coup try last year, his aides and supporters were quick to point fingers at the West. It smacked of conspiracy hypothesi to many outsiders; but Turkey, which blamed the followers of Pennsylvania-based cleric Fethullah Gulen for the putsch, started rounding them up in their thousands.

Fifteen months later, the purge was still going on — and an American consular employee was caught up in it. His arrest on Oct. 4 triggered the current stalemate. The U.S. suspended visa services for Turks, and President Recep Tayyip Erdogan retaliated in kind. The lira plunged more than 6 percent, though it's since recouped more than half the losses.

” This is probably the worst crisis in the history of U.S.-Turkish relations, given that the U.S. authorities have for the first time targeted Turkish nationals directly ,” said Naz Masraff, a director at political-risk analyst Eurasia Group in London.

‘Trust Issue'

Turkey is angry that Gulen hasn't been extradited. It also objects to America's choice of allies in the Syrian civil war: The U.S. is arming Kurdish fighters there who have ties to a violent separatist motion in Turkey. And those grievances have sharpened against the backdrop of a constantly changing Middle East, with U.S. power apparently in retreat — driving Turkey's search for new friends, from Russia and Iran to China.

While none of that means that Turkey is floating away from the Western alliance,” there is a growing trust issue with our NATO allies ,” said Ilnur Cevik, a chief Erdogan adviser on foreign affairs, in an interview last month.” The West feels that Turkey is slipping out of their hands. And they blame Erdogan for it. So they feel that' if we get rid of Erdogan, things will turn back to normal ‘.”

The July 2016 coup attempt surely looked like an attempt to get rid of Turkey's president. For ordinary Turks, the sudden eruption of violence — in a country that largely believed military intervention in politics was a thing of the past — was stunning.

Tanks rolled over vehicles, crushing civilians to death, and helicopters strafed major cities from the air. The parliament in Ankara, and the area around the presidential palace nearby, were bombed by low-flying F-1 6 jets. Erdogan left his seaside hotel before special forces arrived there.

Wave of Arrests

For the elected government to survive this onslaught was a” victory of democracy ,” said Gulnur Aybet, another Erdogan adviser. Yet Turkey's allies refused to see it as such, she said. In fact, they find merely the opposite, as Erdogan launched a crackdown against those he held responsible.

About 110,000 alleged those in favour of Gulen were removed from nation chores; banks, businesses and media outlets were seized or shut down; tens of thousands, including army officers, academics and journalists, remain in detention.

The purgings played into a position of Erdogan's government that was increasingly widespread in the West: that it's autocratic and unreliable. Turkey leads the world in jailing journalists. And prominent Erdogan aides, including an ex-minister and former head of a state bank, have been accused by U.S. attorneys of conspiring to escape sanctions against Iran.

In Syria, too, U.S. and Turkish priorities have clashed. Erdogan says the U.S. is arming terrorists; but to America's generals, who have found Syrian Kurds the most effective local fighters against Islamic State, Turkey's objections are an obstacle to the mission of eliminating the jihadists. The U.S. had to deploy special forces to prevent its Turkish and Kurdish friends from coming to blows.

‘High Marks'

In a speech on the anniversary of the takeover attempt, Erdogan referred to” our so-called allies, who are trying to besiege us along our borders .” He didn't say who he was referring to — and, for millions of his supporters, he didn't need to.

Not long ago, Turkey and the U.S. were in full agreement about Syria: both countries aspired to topple Bashar al-Assad. Instead, Russia intervened to save him; and Erdogan has blamed the Obama administration for failing to act. On the face of it, ties have improved under President Donald Trump, who awarded his Turkish equivalent” very high marks” when the two leaders met in New York last month.

But U.S. policy in Syria hasn't changed much under Trump — and , now that Erdogan has been forced to abandon his objective of regime-change, Turkey is working with Russia to secure its post-war interests there. The Erdogan-Putin alliance includes coordinated deployment of peacekeeping troops. Turkey is also buying Russian missile-defense systems, creating red flag among North Atlantic Treaty Organization allies.

There have always been Turkish strategists who argue that the country should look to Eurasia , not across the Atlantic — and their voices are increasingly prominent. Erdogan has expressed interest in joining the Shanghai Cooperation Organization, the bloc pioneered by China and Russia. There's an” outstanding window of opportunity” to increase Turkish exportations to China and India, Energy Minister Berat Albayrak said Sept. 12.

Hot Money

Turkey's economic ties with Western countries still weigh more heavily in the scales, while its financial system varies depending on” hot fund ,” largely from investors in the U.S. and Europe, to money a large external deficit. Monday's market slump highlighted the vulnerability — and many analysts say that will spur a retreat on Erdogan's part.

” It is likely the Turkish side will back down ,” though not immediately, Eurasia's Masraff said.” There is too much at stake for Turkey .”

Past breakdowns in ties have been repaired, including a major rift over the U.S. intrusion of Iraq in 2003. Yet the context has changed: America's current president has himself called NATO ” obsolete ,” and the U.S. commitment to the Countries of the middle east is increasingly being questioned by its allies there. Turkey isn't the only one seeking to hedge its bets.

Aybet, the Erdogan adviser, was of the view that Western countries should get used to dealing with a more assertive partner.” Things have moved on ,” she said.” Turkey isn't the same, but that doesn't mean that it's not an ally .”