Mayoral races across the Commonwealth narrowed on Tuesday. While the Boston results trickled in, unofficial tallies were released in less than an hour in many cities across the state who are winnowing their fields to two.

Somerville City Councilor Will Mbah came out on top with around 30% of the vote in the four-way preliminary race, according to unofficial results tweeted by current mayor Joseph Curtatone. Curtatone is not seeking a 10th term after 18 years in the seat.

In a tight race for the second spot, City Councilor Katjana Ballantyne pulled ahead of Mary Cassesso by just a few hundred votes. Those three candidates are all considered progressive Democrats, while William Tauro, who has switched between being a Democrat and Republican and is now independent, came in fourth.

All of Somerville’s mayors have been white, meaning Mbah could become the city’s first Black leader if he can beat Ballantyne in November. A native of Cameroon, he has been a city councilor since 2017.

“I believe, fundamentally, that until we have a government that reflects the population, we should not be talking about issues of racial justice, environmental justice, or equity,” Mbah told GBH News in August, who identified housing as the biggest challenge for Somerville. “So that is why I’m running for mayor, to accelerate our community’s progress on these key issues.”

Former Selectman Charlie Sisitsky and incumbent Yvonne Spicer will advance to the Framingham general election in November, according to unofficial results from the city clerk.

Spicer, who’s running for a second term, finished with just under 2,000 votes, compared to roughly 4,400 for former Selectman and one-time City Councilor Sisitsky, as first reported by The Framingham Source. A career public servant, Sisitsky has spent decades in city planning and public works positions in Massachusetts municipalities.

Spicer became Framingham’s first-ever mayor when she was sworn in in 2018, as well as Massachusetts’ first popularly elected Black female mayor. The town was previously governed by an elected town meeting, a Board of Selectmen and a selectmen-appointed Town Manager.

Unofficial results show that Salem Mayor Kim Driscoll, seeking a fifth term, will move forward to the general election in November, winning 4,111 votes, 60.5% of the share. Driscoll had strongly outraisedher opponents.

Steve Dibble, a city ward councilor and former city planner, came in second with 2,539 votes, or 37.4%. Dibble ran with support from anti-development residents and made affordable housing central to his campaign. Frank Perley, a first-time political candidate, came in a distant third with 147 votes.

In Lynn’s open race for mayor, three-term School Committee member Jared Nicholson and City Council President Darren Cyr will advance to the general election in November, according to results from the clerk’s office. Mayor Thomas McGeeis, who took office in 2018, did not run for a second term.

“We’re thrilled,” Nicholson said on Lynn Community TV, the local public access station. “I feel really grateful for the support of the voters, the support of the team we put together.”

Nicholson outpaced Cyr and fellow School Committee member Michael Satterwhite, who finished in third and will not be in the final mayoral election. Cyr has been on Lynn’s City Council for 16 years and has been the City Council President for four.