Mr. Mamdani, a state assemblyman and democratic socialist, won by a 12-point margin. He was declared the winner on Tuesday after ranked-choice tabulations were run.
Zohran Mamdani, the democratic socialist whose blend of populist ideas and personal magnetism catapulted his upstart candidacy, won the Democratic primary for mayor of New York City by a significant margin, according to The Associated Press.
The race was called for Mr. Mamdani on Tuesday afternoon, shortly after New York City’s Board of Elections released its tabulation of ranked-choice ballots.
Mr. Mamdani, a state assemblyman from Queens, won with 56 percent of the vote. Former Gov. Andrew M. Cuomo came in second with 44 percent. The board will certify the final vote in mid-July.
Mr. Mamdani, 33, now moves on to a contested general election in November, where he will face Mayor Eric Adams, a Democrat who opted out of the primary to run as an independent; Curtis Sliwa, the Guardian Angels founder running on the Republican line; and Jim Walden, a lawyer also running on an independent line.
Mr. Cuomo, for now, is also running on an independent line, but he has not yet decided whether he intends to continue campaigning. Although the three independent candidates are all registered Democrats, Mr. Mamdani is expected to be the favorite in a city where Democrats outnumber Republicans by six to one.
Mr. Mamdani triumphed by bringing new voters to the polls with a campaign turbocharged by his energy, charm, social media savvy and an army of enthusiastic volunteers whose breadth appeared unprecedented in recent New York history.