In January 2010, the Social Democratic Party candidate for Croatian president Ivo Josipović won the 2009-10 presidential elections. It was the first time in modern Croatian history that the Social Democrats had their own president. Ivo Josipović defeated Milan Bandić in the second round of elections. Bandić was a former high-ranking member of the Social Democratic Party and mayor of Zagreb. He left the party in 2009 after declaring his run for president and after that, the Social Democrats lost control of Zagreb.