After 15 years of dominance, Turkey's high-handed and authoritarian President Recep Tayyip Erdogan has won elections marred by allegations of rigging and government dominance of the media.
Erdogan used to be the poster-boy for Western hopes that Islam, democracy and prosperity could mix happily. But 15 long years in power fed Erdogan's authoritarianism and pasha-like caprice.
Millions of Turks, who had backed him for stabilising the economy and liberalising official attitudes to the country's minorities like the Kurds, felt deceived as the economy tanked and Erdogan used emergency rule to crack down on political rivals as well as the coup plotters of 2016.
Although Erdogan argued that Turkey needed a strong presidency to secure the country, the stronger he has become, the more disruption has hit the economy and his country's relations with its allies in Nato.
Many Turks' desire for economic stability and less trouble on their borders with Syria and Iraq explains the surge in support for the opposition.