BOSTON (AP) — Boston is on the cusp of narrowing its field of mayoral hopefuls for the first time to two people of color, possibly both women — a stark change from the unbroken string of white men elected mayor in the city’s first 200 years.

Voters cast ballots in a preliminary mayoral election that will select two contenders from a field of five main candidates, all of whom are people of color, four of them women. Tuesday’s two winners will face off against each other on Nov. 2, ushering in a new era for the city which has wrestled with racial and ethnic strife.

RELATED: Election commissioner: Thousands of last-minute votes being verified before results can be released

Acting Mayor Kim Janey; City Councilors Annissa Essaibi George, Andrea Campbell and Michelle Wu; and John Barros, the city’s former economic development chief, were all vying to be one of the top contenders.

Wu and Essaibi George told supporters Tuesday night they were the top two vote-getters, despite less than 1% of votes officially tallied, and both Janey and Campbell conceded defeat. The Associated Press has not yet called the winners because only a tiny amount of the vote has been counted.

RELATED: Wu tells supporters she’s confident she will be among finalists in Boston mayoral race

Janey had already made history, becoming the first Black Bostonian and first woman to occupy the city’s top office in an acting capacity after former Mayor Marty Walsh stepped down earlier this year to become President Joe Biden’s labor secretary.

“I want to congratulate Michelle Wu and Annissa Essaibi-George on their victories this evening,” Janey said in a statement. “This was a spirited and historic race, and I wish them both luck in the final election.”

All of the candidates are Democrats. Mayoral races in Boston do not include party primaries.

RELATED: Enthusiastic Essaibi George addresses supporters as results continue to be verified

The candidates hail from a range of backgrounds. Wu’s parents immigrated to the United States from Taiwan. Janey and Campbell are Black. Essaibi George describes herself as a first generation Arab-Polish American. Barros is of Cape Verdean descent.

Wu has held a lead over the other top four candidates in a number of recent polls, setting up a scramble among the other contenders for the second spot if Wu’s lead holds.

Wu, who grew up in Chicago and moved to Boston to attend Harvard University and Harvard Law School, is the only candidate who wasn’t born in the city.

Boston has changed radically since its down-at-the-heels days of the 1970s, when the city found itself in the national spotlight over the turmoil brought on by school desegregation, and of the late 1980s, when the case of Charles Stuart again inflamed simmering racial tensions.

RELATED: ‘Not the result we wanted’: Councilor Andrea Campbell tells supporters she’s proud of issue-based campaign

Stuart is believed to have shot and killed his pregnant wife in 1989 while trying to blame the killing on an unknown Black man, prompting police to search Black neighborhoods in vain for a suspect. Stuart later jumped to his death from a bridge.

The latest U.S. Census statistics show residents who identify as white make up 44.6% of the population compared to Black residents (19.1%), Latino residents (18.7%) and residents of Asian descent (11.2%).

The city has also changed politically.

In 2018, former Boston City Councilor Ayanna Pressley defeated longtime Democratic U.S. Rep. Michael Capuano to become the first Black woman elected to Congress from Massachusetts. That same year, Rachael Rollins, a former federal prosecutor, won election to become Boston’s first female district attorney and the first woman of color to hold such a job anywhere in Massachusetts. In July, she was nominated by Biden to become the state’s top federal prosecutor.

Among the challenges facing the city are those brought on by gentrification, which has forced out many long-term residents, including those in historically Black neighborhoods.

RELATED: Janey hoping accomplishments as acting mayor will guide her to full term

Added to that are a host of other challenges that will face the new mayor, from transportation woes, racial injustice and policing to schools and the ongoing response to the COVID-19 pandemic. One of the most pressing issues is the cost of housing, which is outpacing the financial means of many tenants and prospective homeowners.

There have been moments of controversy during the campaign.

Janey was faulted for invoking slavery and lies about Barack Obama’s citizenship pushed by Donald Trump when discussing New York’s effort to require people to prove they’ve been vaccinated before entering indoor public settings.

She later walked back the comparisons, saying “I wish I had not used those analogies.”

Essaibi George has also found herself under scrutiny after The Boston Globe reported her city council office tried to undermine a building project that would have blocked the view of a luxury condominium building owned by her husband.

Essaibi George later said her husband’s name never came up in the municipal hearings and she only became aware of his involvement after being quizzed by reporters.

The contest is also the first preliminary election in the city’s history to allow mail-in voting. The contest also allowed for early voting last week.

(Copyright (c) 2022 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox