Turkey is coming apart. The Islamist coalition that crushed the secular military and political establishment–between Tayip Erdogan’s ruling AK Party and the Islamist movement around Fethullah Gulen–has cracked. The Gulenists, who predominate in the security forces, have arrested the sons of top government ministers for helping Iran to launder money and circumvent sanctions, and ten members of Erdogan’s cabinet have resigned. Turkey’s currency is in free fall, and that’s just the beginning of the country’s troubles: about two-fifths of corporate debt is in foreign currencies, so the cost of servicing it jumps whenever the Turkish lira declines. Turkish stocks have crashed (and were down another 5% in dollar terms in early trading Friday). As the charts below illustrate, so much for Turkey’s miracle economy.

Two years ago I predicted a Turkish economic crash. Erdogan’s much-vaunted economic miracle stemmed mainly from vast credit expansion to fuel an import boom, leaving the country with a current account deficit of 7 % of GDP (about the same as Greece before it went bankrupt) and a mushrooming pile of short-term foreign debt. The Gulf states kept financing Erdogan’s import bill, evidently because they wanted to keep a Sunni power in business as a counterweight to Iran; perhaps they have tired of Turkey’s double-dealing with the Persians. And credulous investors kept piling into Turkish stocks.

I reiterated my warning that Turkey would unravel at regular intervals, for example here.

No more. Turkey is a mediocre economy at best with a poorly educated workforce, no high-tech capacity, and shrinking markets in depressed Europe and the unstable Arab world. Its future might well be as an economic tributary of China, as the “New Silk Road” extends high-speed rail lines to the Bosporus.

For the past ten years we have heard ad nauseum about the “Turkish model” of “Muslim democracy.” The George W. Bush administration courted Erdogan even before he became prime minister, and Obama went out of his way to make Erdogan his principal pal in foreign policy. I have been ridiculing this notion for years, for example in this 2010 essay for Tablet.

The whole notion was flawed from top to bottom. Turkey was not in line to become an economic power of any kind: it lacked the people and skills to do anything better than medium-tech manufacturing. Its Islamists never were democrats. Worst of all, its demographics are as bad as Europe’s. Ethnic Turks have a fertility rate close to 1.5 children per family, while the Kurdish minority is having 4 children per family. Within a generation half of Turkey’s young men will come from families where Kurdish is the first language.

Chart forUSD/TRY (TRY=X)

Chart foriShares MSCI Turkey (TUR)