Mayor Michael Bloomberg took office shortly after the terrorist attacks of September 11, 2001 and continued the city's transformation as one where murders have dropped but the divide between rich and poor has grown.
The front-runner to replace Bloomberg, Bill de Blasio, has focused on that divide and promoted himself as the cleanest break with the current administration. If he gets more than 40 per cent of the primary vote today, he would avoid a second election among the top two finishers in his political party October 1.
De Blasio's rise was unexpected. He placed his interracial family at the heart of his campaign.
City Council Speaker Christine Quinn, who is trying to become the city's first female and first openly gay mayor, led the polls for most of the year but has seen support disappear as her rivals linked her to the bitter debate to let Bloomberg run for a third term in 2009.
The city comptroller, John Liu, is trying to become the city's first Asian-American mayor but has been hurt by a fundraising scandal.