The polls are closed. A plurality of Democrats chose Adams as their frontrunner, according to unofficial results from New York City's board of elections.
Mr Yang - a tech entrepreneur who attracted a devoted following during his bid to be the Democratic presidential candidate in the 2020 election - had been the frontrunner to become the party's NY candidate.
This is the first big test of ranked choice voting in the Big Apple.
Candidates: An Ipsos poll has Brooklyn Borough President Eric Adams on top with 28%, followed by entrepreneur-turned-politician Andrew Yang (20%), former sanitation chief Kathryn Garcia (15%), and civil rights attorney Maya Wiley (13%). Former presidential candidate Andrew Yang was further back.
"This is the first early voting count", Adams said. "A little boy, laying on the floor of the 103rd Precinct, assaulted by cops, now could become the mayor to be in charge of that same police department".
A crowded field of progressives and moderates face off in a race made all the more uncertain by a new ranked-choice system of voting that has clouded all predictions. "But there's something else we know: New York City said our first choice is Eric Adams".
Mr Adams is so far well short of the 50% of first-choice votes needed for him to be the outright victor under the ranked preference voting system. That process continues until only two candidates are left. The one with the most votes wins.
A voter receives her ballot at Frank McCourt High School, in New York, Tuesday, June 22, 2021. The final votes are set to be cast Tuesday in New York's party primaries, where mayors, prosecutors, judges and city and county legislators will be on the ballot, along with other municipal offices.
How does the voting system work?The BOE will release an updated count with mail-in ballots on July 6th.
According to the city's Board of Elections, more than 221,000 absentee ballots were sent out and only about 90,000 had been returned on primary day. "I know this. I'm going to keep my city safe", he said.
Who are the Democratic candidates?
Since New York is a Democratic stronghold, though, they are virtually guaranteed to win November's mayoral election against whomever Republicans choose as their candidate.
The candidates raced around the city Tuesday doing a last round of campaigning.
Wiley was losing her voice greeting voters near her polling place in Brooklyn. Adams performed well in every borough except Manhattan, where Garcia dominated.
Yang rode the subways to meet voters.
During the campaign, Wiley gained the endorsements of progressive New Yorkers Reps. He has been critical of the city's police but says they are vital to the fight against crime and insecurity.
He denounced the "defund the police" slogan and proposed reinstating a disbanded plainclothes unit to focus on getting illegal guns off the streets. Because no one candidate got more than 50% of the votes, as expected, ranked choice votes have come into play.
Of the top contenders, either Garcia or Wiley would be city's first female mayor if elected. Yang would be the city's first Asian American mayor.
Democratic mayoral candidate Maya Wiley, left, greets a voter during a campaign stop near a polling place in the West Village neighborhood of New York, Tuesday, June 22, 2021.
Yang and Garcia formed an alliance in the campaign's last days in an apparent effort to use the ranked voting system to block Adams. The two held several joint campaign events, with Yang asking his supporters to rank Garcia as their No. 2 - though Garcia did not quite return the favor, not telling her voters where to rank Yang. Those statistics mirror a surge in crime across United States cities more generally.