ISTANBUL (AP) โ Hundreds of thousands of opposition supporters gathered outside Istanbul city hall Sunday night to protest the arrest of the cityโs mayor, a key rival to Turkish President Recep Tayyip Erdogan.
Earlier Sunday, a court formally arrested Mayor Ekrem Imamoglu and ordered him jailed pending the outcome of a trial on corruption charges. His detention Wednesday morning sparked the largest wave of street demonstrations in Turkey in more than a decade, with large crowds gathering outside city hall for the fifth night in a row. It also deepened concerns over democracy and rule of law in Turkey. His imprisonment is widely regarded as a political move to remove a major contender from the next presidential race, currently scheduled for 2028. Government officials reject the accusations and insist that Turkeyโs courts operate independently. โIf you werenโt here today, if you hadnโt rushed here since the first day, if you had yielded to tear gas and barricades, if you had gotten scared and remained at home, then today a caretaker appointed by Tayyip Erdogan would be residing here in this building,โ said Ozgur Ozel Sunday night, pointing at city hall as he spoke to the massive crowd chanting anti-government slogans. Ozel is the head of the Republican Peopleโs Party, or CHP, to which Imamoglu belongs.
Suspicion of running criminal organization
The prosecutorโs office said the court decided to jail Imamoglu on suspicion of running a criminal organization, accepting bribes, extortion, illegally recording personal data and bid-rigging. A request for him to be imprisoned on terror-related charges was rejected although he still faces prosecution. Following the court's ruling, Imamoglu was transferred to Silivri prison, west of Istanbul.

The Interior Ministry later announced that Imamoglu had been suspended from duty as a โtemporary measure.โ The municipality had previously appointed an acting mayor from its governing council.
Alongside Imamoglu, 47 other people were also jailed pending trial, including a key aide and two district mayors from Istanbul, one of whom was replaced with a government appointee. A further 44 suspects were released under judicial control.
Interior Minister Ali Yerlikaya said Sunday that 323 people were detained the previous evening over disturbances at protests.
Largely peaceful protests across Turkey have seen hundreds of thousands come out in support of Imamoglu. However, there has been some violence, with police deploying water cannons, tear gas, pepper spray and firing plastic pellets at protesters in Istanbul, Ankara and Izmir, some of whom hurled stones, fireworks and other missiles at riot police.
A primary to endorse Imamoglu and โsolidarity ballots"

The formal arrest came as more than 1.7 million members of the opposition CHP began holding a primary presidential election to endorse Imamoglu, the sole candidate.
The party has also set up symbolic ballot boxes nationwide to allow people who are not party members to express their support for the mayor. Large crowds gathered early Sunday to cast a โsolidarity ballot.โ
โThis is no longer just a problem of the Republican Peopleโs Party, but a problem of Turkish democracy,โ Fusun Erben, 69, said at a polling station in Istanbulโs Kadikoy district. โWe do not accept our rights being so easily usurped. We will fight until the end.โ
Speaking at a polling station in Bodrum, western Turkey, engineer Mehmet Dayanc, 38, said he feared that โin the end weโll be like Russia, a country without an opposition, where only a single man participates in elections.โ

At the time of Sunday nightโs protest, the vote count had reached around 15 million people, of which around a little over 13 million were from non-party members voting in solidarity. In a post on social media, Imamoglu praised the result from Silivri Prison, writing that the people had told Erdogan โenough is enough.โ โThat ballot box will arrive, and the nation will deliver a slap to the administration it will never forget.โ
Domestic and international supporters slam the court's action
โHonestly, we are embarrassed in the name of our legal system,โ Ankara Mayor Mansur Yavas, a fellow member of Imamogluโs CHP, told reporters after casting his vote, criticizing the lack of confidentiality in the proceedings.
CHP leader Ozgur Ozel said Imamogluโs imprisonment was reminiscent of โItalian mafia methods.โ Speaking at Istanbul City Hall, he added: โImamoglu is on the one hand in prison and on the other hand on the way to the presidency.โ
The Council of Europe, which focuses on promoting human rights and democracy, slammed the decision and demanded Imamoglu's immediate release.

The German government called the mayor's imprisonment โa serious setback for democracy in Turkey," adding that โpolitical competition must not be conducted with courts and prisons.โ
Soner Cagaptay, director of the Turkish Research Program at the Washington Institute for Near East Policy and an author of a biography of Erdogan, said the president was โdetermined to do whatever it takes to end Imamogluโs career.โ
Imamoglu's long history of criminal cases
Before his detention, Imamoglu had already faced multiple criminal cases that could result in prison sentences and a political ban. He was also appealing a 2022 conviction for insulting members of Turkeyโs Supreme Electoral Council.
Earlier in the week, a university nullified his diploma, citing alleged irregularities in his transfer from a private university in northern Cyprus some 30 years ago. The decision effectively bars him from running for president, since the position requires candidates to be university graduates. Imamoglu had vowed to challenge the decision.

Imamoglu was elected mayor of Turkeyโs largest city in March 2019, in a major blow to Erdogan and the presidentโs Justice and Development Party, which had controlled Istanbul for a quarter-century. Erdoganโs party pushed to void the municipal election results in the city of 16 million, alleging irregularities.
The challenge resulted in a repeat of the election a few months later, which Imamoglu also won.
The mayor retained his seat following local elections last year, during which the CHP made significant gains against Erdoganโs governing party.
โโโ

Associated Press writer Kirsten Grieshaber in Berlin contributed to this report.