Now that Turkey is at loggerheads with its erstwhile ally, the United States, the country’s currency crisis has morphed into a political problem of the first order. The immediate issue is Turkey’s refusal to release the American pastor Andrew Brunson, who is being held on charges of terrorism, espionage, and subversion for his alleged role in the failed July 2016 coup against Turkish President Recep Tayyip Erdoğan.

The US government is right to object to Brunson’s detention. But its reaction has been counterproductive. In particular, the imposition of additional US tariffs on imports of Turkish steel and aluminum could further undermine confidence in Turkey’s economy, triggering a wider crisis that would do serious harm to the global economy. Moreover, tariffs allow Erdoğan to blame his country’s economic woes on America, rather than on his own government’s incompetence.

It is still possible that the Turkish government will find a way to release Brunson, and that US President Donald Trump, anxious to demonstrate fealty to the evangelicals who form a core part of his base, will rescind the tariffs. But even if the immediate crisis is resolved, the structural crisis in US-Turkish relations – and Western-Turkish relations generally – will remain. We are witnessing the gradual but steady demise of a relationship that is already an alliance in name only. Though the Trump administration is right to have confronted Turkey, it chose not only the wrong response, but also the wrong issue.

The relationship between Turkey and the West has long been predicated on two principles, neither of which obtains any longer. The first is that Turkey is a part of the West, which implies that it is a liberal democracy. Yet Turkey is neither liberal nor a democracy. It has effectively been subjected to one-party rule under the Justice and Development Party (AKP), and power has become concentrated in the hands of Erdoğan, who is also the AKP’s leader.

Under Erdoğan, checks and balances have largely been eliminated from the Turkish political system, and the president controls the media, the bureaucracy, and the courts. The same failed coup that Erdoğan cites as grounds to imprison Brunson has also served as an excuse for detaining thousands of others. At this point, it is impossible to see how Erdoğan’s Turkey could ever qualify for EU membership.

The second principle underlying Turkey’s “Western” status is alignment on foreign policy. Turkey recently bought more than 100 advanced F-35 fighter jets from the US. Yet, in recent years, Turkey has also supported jihadist groups in Syria, moved closer to Iran, and contracted to purchase S-400 surface-to-air missiles from Russia.

Above all, Turkey and the US find themselves on different sides in Syria. While the Syrian Kurds have been close partners of the US, they have been deemed terrorists by Turkey, owing to their ties to Kurdish groups inside Turkey that historically have sought autonomy, if not independence. Against this backdrop, it is not far-fetched to imagine US and Turkish forces coming to blows.

Some might say that the current level of US-Turkish friction is nothing new; the two countries have long had their share of differences. The Turks were not happy with the US decision to withdraw medium-range missiles from Turkey as part of the deal that ended the 1962 Cuban Missile Crisis. The two countries clashed repeatedly over the Turkish intervention and subsequent occupation of Northern Cyprus in 1974, and over US support for Greece. Turkey refused to give US military forces access to Incirlik Air Base during the Iraq war in 2003. And in recent years, the Turkish government has been infuriated by America’s refusal to extradite the Pennsylvania-based cleric Fethullah Gülen, whom Erdoğan believes masterminded the 2016 coup attempt.

Still, what we are seeing today is something different. The anti-Soviet glue that kept the two countries close during the Cold War is long gone. What we have now is a loveless marriage in which the two parties continue to cohabitate under the same roof, even though there is no longer any real connection between them.

The problem is that the NATO treaty provides no mechanism for divorce. Turkey can withdraw from the alliance, but it cannot be forced out. Given this reality, the US and the European Union should maintain a two-pronged approach toward Turkey.

First, policymakers should criticize Turkish policy when warranted. But they must also reduce their reliance on access to Turkish bases such as Incirlik, deny Turkey access to advanced military hardware like F-35s, and reconsider the policy of basing nuclear weapons in Turkey. Moreover, the US should not extradite Gülen unless Turkey can prove his involvement in the coup with evidence that would stand up in a US court and satisfy the provisions of the 1981 mutual extradition treaty. Nor should the US abandon the Kurds, given their invaluable role in the fight against the Islamic State (ISIS).

Second, the US and Europe should wait until the Erdoğan era is over, and then approach Turkey’s new leadership with a grand bargain. The offer should be Western support in exchange for a Turkish commitment to liberal democracy and to a foreign policy focused on fighting terrorism and pushing back against Russia.

Erdoğan recently warned in the New York Times that the US-Turkish partnership “could be in jeopardy,” and that Turkey would soon start looking for new friends and allies if US unilateralism and disrespect were not reversed. In fact, the partnership was already in jeopardy, largely because of Turkish actions, and Erdoğan had already begun the process of looking for new friends and allies. It is time for the US and Europe to adjust to this reality.