Prosecutors accused Ekrem Imamoglu, the mayor of Istanbul, of leading a criminal organization. The opposition called the case politically motivated.