Turkey is in a uniquely awful position. It has the strongest President since the military coup in 1980, possibly since Ataturk himself. But while President Recep Tayyip Erdogan has skilfully pulled together all the threads of authority in Turkey, random killings, suicide bombings and a civil war in the southeast have been spiralling out of control.
He is a control freak who cannot master the threats facing Turkey; if anything, his capricious style of government has helped breed them.
By supporting radical jihadists against the Syrian regime, Erdogan ignored the risks of blowback. When Assad was weak, the Kurds in Syria began to assert themselves. Erdogan moved to stop them establishing a Kurdish mini-state south of Turkey, but the price demanded by the West for turning a blind eye to that was to also crack down on Isis (Islamic State).
These two crackdowns set off terrorist attacks in Turkey. Kurdish groups primarily attacked the army and police; Isis has targeted civilians.
Erdogan's foreign policy has veered from confrontation with Russia and Iran to partnership with them and public allegations that his chief Western ally, the United States, is behind the terrorism afflicting Turkey.