The final-round matchup between Mr. Adams and Ms. Garcia illustrated sharp divisions within the Democratic Party along the lines of race, class and education.
Mr. Adams, who cast himself as a blue-collar candidate, led in every borough except Manhattan in the tally of first-choice votes and was the strong favorite among working-class Black and Latino voters. He also demonstrated strength with white voters who held more moderate views, especially, some data suggests, among those voters who did not have college degrees — a coalition that has been likened to the one that propelled President Biden to the Democratic nomination in 2020.
Ms. Garcia, a former sanitation commissioner who ran on a message of technocratic competence, was popular with white moderate voters across the five boroughs.But she was overwhelmingly the candidate of Manhattan, dominating in some of the wealthiest ZIP codes in the country. She appealed to highly educated and more affluent voters across the ideological spectrum there and in parts of brownstone Brooklyn, even as she struggled to connect with voters of color elsewhere in the kinds of numbers it would have taken to win.
The results capped a remarkable stretch in the city’s political history: The race began in a pandemic and took several unexpected twists in the final weeks, as one candidate confronted accusations of sexual misconduct dating back decades; another faced a campaign implosion; and Mr. Adams, under fire over residency questions, offered reporters a tour of the Brooklyn apartment where he says he lives.
Most recently, it was colored by a vote-tallying disaster at the Board of Elections, leaving simmering concerns among Democrats about whether the eventual outcome would leave voters divided and mistrustful of the city’s electoral process. In a statement Tuesday night, Ms. Wiley thanked her supporters and expressed grave concerns about the Board of Elections.
“We will have more to say about the next steps shortly,” the statement said. “Today we simply must recommit ourselves to a reformed Board of Elections and build new confidence in how we administer voting in New York City. New York City’s voters deserve better, and the B.O.E. must be completely remade following what can only be described as a debacle.”
Ms. Garcia came in third place among voters who cast ballots in person on Primary Day and during the early voting period, trailing both Mr. Adams and Ms. Wiley. But on the strength of ranked-choice voting, she surged into second place, with significant support from voters who had ranked Ms. Wiley and Andrew Yang, a former presidential candidate, as their top choices.