After he joined the Welfare party of the Islamist prime minister Necmettin Erbakan in the 1980s, he climbed the ladder in the party until he ran for the post of mayor of Istanbul, winning in 1994 and instituting reforms that improved the quality of life in the city.