Outgoing Turkish Prime Minister Recep Tayyip Erdogan has won his country's first direct presidential election, provisional results show.
With almost all votes counted, Erdogan had won about 52%, against 38% for his main rival, officials said. He said the people had "shown their will".
Erdogan had been prime minister since 2003 and was barred from standing for another term. He needed more than 50% of the vote for an outright victory, avoiding a second round.
The BBC reported that turnout appears to be much lower than expected - some voters may have been dissuaded by the summer heat and holidays.
Erdogan's two rivals were a little-known diplomat, Ekmeleddin Ihsanoglu, and Kurdish politician Selahattin Demirtas.
Ihsanoglu, the joint candidate for the two main opposition parties in parliament, gained about 38% of the vote. Demirtas took about 9%.