Ekrem Imamoglu, candidate of Turkey's secular opposition Republican People's Party, makes a statement after his election victory, in Istanbul, Sunday, June 23, 2019. Turkish President Recep Tayyip Erdogan has congratulated Imamoglu who won a repeat mayoral election in Istanbul and defeated Erdogan's candidate for the second time. (AP Photo/Burhan Ozbilici)

Ekrem Imamoglu, candidate of Turkey's secular opposition Republican People's Party, makes a statement after his election victory, in Istanbul, Sunday, June 23, 2019. Turkish President Recep Tayyip Erdogan has congratulated Imamoglu who won a repeat mayoral election in Istanbul and defeated Erdogan's candidate for the second time. (AP Photo/Burhan Ozbilici)

ISTANBUL (AP) — The Latest on Turkey’s repeated mayoral election in Istanbul (all times local):

11:20 p.m.

Tens of thousands of people attended an election night celebration after a repeated vote in Istanbul made an opposition candidate mayor-elect of Turkey’s largest city.

Ekrem Imamoglu spoke late Sunday after unofficial returns showed him more than 777,000 votes ahead of his opponent, who conceded defeat earlier in the night.

Imamoglu told the cheering crowd: “We will work a lot for Istanbul starting tomorrow.”

Imamoglu promised to end political divisions in Istanbul from the hard-fought election and to “bring morals to politics.”

ADVERTISEMENT

Supporters chanted as Imamoglu repeated his campaign catchphrase: “Everything will be great.”

Impromptu celebrations also broke out in several Istanbul neighborhoods.

___

9:20 p.m.

Turkish President Recep Tayyip Erdogan has congratulated the opposition candidate who won a repeat mayoral election in Istanbul and defeated Erdogan’s candidate for the second time.

Erdogan tweeted on Sunday night: “I congratulate Ekrem Imamoglu, who has won according to unofficial results.”

Erdogan’s ruling Justice and Development Party, AKP, contested the results of the first mayoral election, held March 31. Imamoglu won that contest with a narrow margin of 13,729 votes.

Turkey’s electoral board annulled the results and ordered a repeat election.

Unofficial returns from Sunday’s election show Imamoglu beating Erdogan’s candidate, former Prime Minister Binali Yildirim, by more than 777,000 votes.

AKP still controls 25 of Istanbul’s 39 districts and holds a majority of seats in the municipal assembly.

___

7:45 p.m.

The opposition candidate for mayor of Istanbul has declared victory in a high-stakes repeat election after his rival backed by Turkey’s president conceded defeat.

Ekrem Imamoglu’s victory means Turkey’s largest city won’t be governed by President Recep Tayyip Erdogan’s party or its predecessor for the first time in 25 years.

Unofficial returns after most votes from Sunday’s repeat election were counted showed Imamoglu had a clear majority. His government-backed opponent, former Prime Minister Binali Yildirim, conceded moments after early returns showed him trailing with 44% of the vote to his opponent’s 54%.

Speaking to jubilant supporters on Sunday night, Imamoglu said: “Thank you, Istanbul!”

Imamoglu had narrowly won a previous mayoral election on March 31, but Turkey’s electoral board annulled the results after weeks of partial recounts.

___

ADVERTISEMENT

7:25 p.m.

A former Turkish prime minister backed by Turkey’s ruling party has conceded defeat and congratulated his opponent in Istanbul’s repeated mayoral election.

Binali Yildirim said Sunday night that opposition candidate Ekrem Imamoglu was ahead as the first returns were announced.

Yildirim said: “I congratulate him and wish him success.”

With nearly all votes counted, Imamoglu had a lead of more than 715,000 votes.

Imamoglu narrowly won office as mayor of Turkey’s largest city on March 31 and served for 18 days. Turkey’s electoral board annulled the results after weeks of partial recounts.

___

5:25 p.m.

Turkey’s election board has ruled as the vote count begins in the repeated election for Istanbul’s mayor to count as valid ballots with inconsistent stamps.

Two political parties, the ruling Justice and Development Party and the opposition Republican People’s Party, requested a decision on the stamps earlier Sunday.

The parties said some ballot envelopes arrived at polling stations bearing official stamps from a previous election, lacking stamps or carrying more stamps than needed.

In previous elections, the electoral board’s decision to count unstamped ballots as valid fueled fears of possible fraud. Sunday’s decision was sought by the rival parties.

An opposition candidate won the Istanbul mayor’s race when Turkey held local elections on March 31. The governing party challenged the vote and the election board voided the results after weeks of partial recounts.

___

5:05 p.m.

Polls have closed in Istanbul after voters cast ballots in a re-run mayoral election after a March 31 vote was voided for procedural irregularities.

Opposition candidate Ekrem Imamoglu sought to repeat his win from 12 weeks earlier to become the city’s first mayor in 25 years who is not from President Recep Tayyip Erdogan’s party or its Islamist-rooted predecessor.

The other candidate in Sunday’s election is former Turkish Prime Minister Binali Yildirim, who received support from Erdogan at campaign rallies.

The Turkish leader was mayor of Istanbul, the country’s largest city, during the 1990s.

The election board’s decision to cancel the March election after the governing party challenged it polarized Turks, who attended campaign rallies in large numbers.

___

1:35 p.m.

Turkish President Recep Tayyip Erdogan has voted in a closely watched repeat election for the next mayor of Istanbul, a contest that could have a political impact on his national government.

Erdogan cast his ballot at a suburban school, then was greeted by hundreds of supporters. He says “I believe the thinking voter will make the best decision for Istanbul.”

The vote Sunday is being re-run after opposition candidate Ekrem Imamoglu won the Istanbul mayoral race in March. The result was canceled by Turkey’s main election board, citing procedural irregularities, after the ruling party protested.

The two main candidates on the Istanbul ballot, Imamoglu and government-backed Binali Yildirim, also voted.

___

7 a.m.

Polls have opened in a repeat election in Turkey’s largest city where President Recep Tayyip Erdogan and his political allies could lose control of Istanbul’s administration for the first time in 25 years.

Opposition candidate Ekrem Imamoglu narrowly inflicted a shock defeat on a pro-government candidate in March 31 local government elections and briefly served as mayor for nearly three weeks. But the election was canceled following government complaints of procedural irregularities and a spat between the two sides over recounts.

In a hard-fought campaign, Imamoglu focused on urban poverty after the country slid into recession at the end of 2018.

Polls close at 5:00 p.m. (1400 GMT) with preliminary results expected later Sunday.