"You may deceive all the people part of the time, and part of the people all the time ... ", begins Abraham Lincoln's famous aphorism about democracy - but in a multi-party democratic system, that is usually enough. In a parliamentary system like Turkey's, 49 per cent of the popular vote gives you a comfortable majority of seats, and so Recep Tayyib Erdogan will rule Turkey for another four years. If it lasts that long.
There will still be a Turkey of some sort in four years' time, of course, but it may no longer be a democracy, and it may not even have its present borders. In last Sunday's vote Erdogan won back the majority he lost in the June election, but the tactics he employed have totally alienated an important section of the population.
Kurds make up a fifth of Turkey's 78 million people. Most Kurds are pious, socially conservative Sunni Muslims, so they usually voted for Erdogan's Justice and Development (AK) Party - which consequently won three successive elections (2003, 2007, 2011) with increasing majorities. Then the Kurds stopped voting for Erdogan, which is why he lost last June's election. In this month's election he managed to replace those lost votes with nationalist voters who are frightened of a Kurdish secession and simple souls who just want stability and peace - but he had to start a war to win them over.
Erdogan threw Turkey's support firmly behind the rebels when the Syrian civil war broke out in 2011, mainly because as a devout Sunni Muslim he detested Bashar al-Assad's Alawite-dominated regime. He kept Turkey's border with Syria open to facilitate the flow of volunteers, weapons and money to the Islamist groups fighting Assad, including the Nusra Front and Isis (which eventually became Islamic State).
He even backed Islamic State when it attacked the territory that had been liberated by the Kurds of northern Syria. That territory extends along the whole eastern half of Turkey's border with Syria, and in the end, despite Erdogan's best efforts, the Syrian Kurds managed to repel Isis' attacks. But this was the issue that cost Erdogan the support of Turkish Kurds.