Zohran Mamdani was elected mayor of New York City Tuesday, capping a stunning ascent for the 34-year-old state lawmaker, who was set to become the city’s most liberal mayor in generations.

In a victory for the Democratic party’s progressive wing, Mamdani defeated former Gov. Andrew Cuomo and Republican Curtis Sliwa.

Mamdani must now navigate the unending demands of America’s biggest city and deliver on ambitious — skeptics say unrealistic — campaign promises.

With the victory, the democratic socialist will etch his place in history as the city’s first Muslim mayor, the first of South Asian heritage and the first born in Africa. He will also become the city’s youngest mayor in more than a century when he takes office on Jan. 1.

He cast his win as a victory for blue-collar workers struggling to get by.

“New York, tonight you have delivered a mandate for change,” he said to cheering supporters.

"The future is in our hands. My friends, we have toppled a political dynasty."

More than 2 million New Yorkers cast ballots in the contest, the largest turnout in a mayoral race in more than 50 years, according to the city’s Board of Elections. With roughly 90% of the votes counted, Mamdani held an approximately 9 percentage point lead over Cuomo.

Mamdani’s unlikely rise gives credence to Democrats who have urged the party to embrace more progressive, left-wing candidates instead of rallying behind centrists in hopes of winning back swing voters who have abandoned the party.

He has already faced scrutiny from national Republicans, including President Donald Trump, who have eagerly cast him as a threat and the face of a more radical Democratic Party that is out of step with mainstream America. Trump has repeatedly threatened to cut federal funding to the city — and even take it over — if Mamdani won.

At his victory party in Brooklyn, Mamdani supporters cheered and embraced, some tearfully, after The Associated Press called the race. Campaign posters flew through the air, as one person hoisted the official flag of New York City and Bad Bunny played from the speakers.