Turkey’s electoral body has been condemned for ordering Istanbul’s local elections to be re-held after an opposition victory in March.
President Recep Tayyip Erdogan’s AK Party had claimed there were “irregularities and corruption” behind the opposition CHP’s slim win.
But CHP’s Ekrem Imamoglu, who was confirmed as Istanbul’s mayor in April, called the decision “treacherous”.
The vote, which will be held on 23 June, has sparked protests in the city.
Hundreds of residents have gathered in several districts of Istanbul, banging pots and pans and shouting anti-government slogans.
The European Parliament has also said the decision to re-run the election would end the credibility of democratic elections in Turkey.
An AKP representative on the electoral board, Recep Ozel, said the rerun was because some electoral officials were not civil servants and some result papers had not been signed.
But CHP deputy chair Onursal Adiguzel said the rerun showed it was “illegal to win against the AK Party”.
Mr Adiguzel tweeted that the decision was “plain dictatorship”.
“This system that overrules the will of the people and disregards the law is neither democratic, nor legitimate,” he wrote.
And in a speech broadcast on social media, Mr Imamoglu condemned the electoral board, saying they were influenced by the ruling party.
“We will never compromise on our principles,” he told the crowd. “This country is filled with 82 million patriots who will fight… until the last moment for democracy.”
A supporters’ group for Mr Imamoglu urged restraint, saying: “Let’s stand together, let’s be calm… We will win, we will win again.”
Municipal elections took place across Turkey on 31 March and were seen as a referendum on Mr Erdogan’s leadership amid a sharp economic downturn.
Although an AKP Party-led alliance won 51% of the vote nationwide, the secularist CHP claimed victory in the capital Ankara, Izmir, and in Istanbul – where Mr Erdogan had once been mayor.
The ruling party has since challenged the results in Ankara and Istanbul, which has prompted opposition accusations that they are trying to steal the election.
Erdogan determined to retake Istanbul
By Mark Lowen, BBC Turkey correspondent
President Erdogan was never going to take the loss of Istanbul lying down. “Whoever wins Istanbul wins Turkey”, he has often said. He is determined to win back the country’s economic powerhouse.
But it’s a strategy fraught with risk. The Turkish lira – which has lost more than 30% over the past year – has slumped again. An economy in recession can hardly cope with more uncertainty. After all, it was economic woes that lost Istanbul for Mr Erdogan in the first place.
What’s more, Ekrem Imamoglu, who was formally appointed mayor last month, is gaining popularity, fast. He’s reached out beyond his base and has settled into the role with ease. The rerun could widen his win – barring major irregularities against him, which many of his supporters fear.
And Mr Erdogan’s own party is deeply split on the issue. His diehard loyalists believe victory was stolen. But other wings of the party accept they lost, and that rejecting the result is another nail in the coffin for what’s left of Turkish democracy.