Erdogan has once again proved the critics wrong and out-maneuvered the opposition
Analysis by Alex Crawford, special correspondent in Istanbul
The man who revels in his image as Turkey's strongman took an early lead almost as soon as polls closed in the second round of voting for President. Celebrations began long before the official declaration. But in truth, the dye was cast some time ago, before the election.
Recep Tayyip Erdogan's demeanour even before campaigning began has been one of a leader comfortably confident of securing his third decade in power in a country which holds a uniquely significant geographical position in the world.
Even has he voted during the first round, he appeared supremely relaxed about his chances of winning. This was despite the polls showing him trailing behind his challenger, the leader of a six-party alliance called Kemal Kilicdaroglu.
Erdogan's re-election comes in the teeth of a spiralling economy, rampant inflation, and in the wake of a disastrous natural disaster clouded by accusations his government was slow to respond.
"We are so happy," one of his fans said outside his Istanbul home. "Our economy is good... Ok, it's been bad for two years but we trust him and he will do his best."
"Bye bye Kemal," others said.
People gathered waving flags, setting off fireworks and singing and dancing down the roads leading to his home in the Uskudar district of the city were predominantly religious conservatives, many of them women, mostly wearing hijabs and conservative Muslim clothing.
This was the closest President Erdogan had come to being unseated. But the odds were always heavily stacked against any electoral upset or success by his rival. Erdogan has spent his two decades at the helm consolidating his power - cracking down on dissent, intimidating and jailing Opposition politicians and journalists, and ensuring the Turkish media is mostly state-controlled and complaint.
International observers in the country who were monitoring the initial vote criticised Erdogan's use of state resources and his control of the media to unduly influence the electorate. Once the dust has settled, they're likely to voice the same concerns this time around.
In his concession speech, Mr Kilicdoruglu called it the 'most unjust election campaign ever' referring to the heavily biased coverage of the President's campaign in most Turkish outlets.
His critics believe his next five years in office are likely to see him take the country further down the autocratic path he embarked on a number of years ago.
Erdogan has once again proved the critics wrong and out-maneuvered his toughest challengers and his grip on power seems unassailable.