Six year legal fight: how Istanbul's mayor became Erdogan's prime target - explainer
The combination of election success and legal battles has now cemented Imamoglu's status as Erdogan's main rival and biggest threat to the president's more than 22-year reign.