Turkey's opposition has dealt President Tayyip Erdogan a stinging blow by winning the rerun of the Istanbul mayoral election.
Ekrem Imamoglu secured a stunning victory for the opposition, which had initially won the mayoral election in March before the vote was challenged by Erdogan's ruling AK party over election irregularities.
In a televised speech, Imamoglu, a former businessman and district mayor, thanked his supporters.
"You have protected the reputation of democracy in Turkey with the whole world watching."
His opponent, ex-PM Binali Yildirim, has conceded.
On Twitter, Erdogan wrote: "I congratulate Ekrem Imamoglu who has won the election based on preliminary results."

UN establishes task force to address Hormuz navigation challenges
Rubio says Iran war to last 'weeks not months'; no ground troops needed
Iran-linked hackers breach FBI director's personal email
Trump extends deadline for striking Iran's energy plants to April 7
Israeli evacuation orders uproot 370,000 children in Lebanon, UN says
UN rights chief urges US to conclude probe into deadly Iran school strike
No injuries reported as Kuwait Shuwaikh Port comes under drone attack
IRGC-linked cells targeting Bahrain referred to Criminal Court
