WORCESTER, Mass. (AP/WHDH) — Geoff Diehl, a former state representative endorsed by former President Donald Trump, has won the Republican nomination for Massachusetts governor over businessman Chris Doughty, who was considered the more moderate candidate in the race.

The victory for Diehl sets up a general election contest against Democratic Attorney General Maura Healey, who would be the first openly gay person and the first woman elected governor of Massachusetts if she wins in November. The state’s current governor, Republican Charlie Baker, decided against seeking a third term.

Republican voters made Massachusetts the latest blue state this midterm season to nominate a Trump loyalist in a high-profile race, potentially dooming the party’s chances of winning in November. Voters in Connecticut and Maryland, liberal states where centrist Republicans have found some success in previous elections, also selected far-right candidates to go up against a Democrat in the general election.

“We’re going to run a campaign that is focused specifically on ‘We the people’ — our freedoms, our rights and our prosperity,” Diehl told supporters Tuesday evening. “Massachusetts is no longer the place where people flock to in order for the protection of their freedoms and to build a better life for the families. Now it’s a place people are leaving.”

Healey, whose only rival for the nomination dropped out of the race but remained on the ballot, will be the heavy favorite in November against Diehl in one of the most liberal states in the nation.

At her victory party Tuesday night before the GOP race was called for Diehl, Healey told cheering supporters that regardless of which candidate emerged as her opponent, “We know he’ll be out of touch with the values we stand for.” Speaking of both candidates, she added, “They’ll bring Trumpism to Massachusetts.”

Diehl, the favorite among state Republican Party delegates, has ties to Trump stretching to 2016, when he served as co-chair for Trump’s presidential campaign in Massachusetts. Diehl has also opposed COVID-19 protocols and hailed the Supreme Court ruling overturning Roe v. Wade.

Doughty said he supported some of Trump’s initiatives but wanted to focus on challenges facing Massachusetts, which he said is increasingly unaffordable.

During a telerally Monday night, Trump said Diehl would “rule your state with an iron fist.”

Diehl has come to embrace Trump’s false claims that he won the 2020 election. Diehl said last year that he didn’t think it was a “stolen election” but later said the election was rigged, despite dozens of courts, local officials and Trump’s own attorney general saying the vote was legitimate. Doughty, meanwhile, has said he believes President Joe Biden was legitimately elected.

“I think right now everybody’s looking at the current president, Biden, and the failures economically, the foreign policy failures, and probably having a little regret that we didn’t keep an administration in office that gave us record unemployment, that gave us prosperity,” Diehl said Wednesday.

The challenge for Diehl in the general election is that support of Trump may play well among the party’s conservative wing but could be a political albatross in a state where registered Republicans make up less than 10% of the electorate compared to about 31% for Democrats and about 57% for independents.

Diehl faced a similar struggle when he challenged Democratic U.S. Sen. Elizabeth Warren in 2018. He won a three-way Republican primary only to capture just over a third of the vote in the general election.

Massachusetts has a history of electing fiscally conservative, socially moderate Republican governors — including former Govs. William Weld and Mitt Romney — to provide a check on overwhelming Democratic legislative majorities. Baker, another Republican in that mold, has remained popular in the state.

Healey has said she would work to expand job training programs, make child care more affordable and modernize schools. Healey has also said she would protect “access to safe and legal abortion in Massachusetts” in the wake of the Supreme Court’s decision overturning Roe v. Wade.

Healey also criticized the GOP ticket during her speech Tuesday night.

“They’ll bring Trumpism to Massachusetts and they both already said they’ll support Donald Trump in 2024. I don’t know about you, but I’m tired of the anger, the vitriol, the division- that’s not who we are, that’s not what Massachusetts is all about,” Healey said. “I want a different path. My path is one of optimism, working together with urgency and intention to get things done.”

But Healey does face an oddball hurdle in Massachusetts — the so-called curse of the attorney general. Since 1958, six former Massachusetts attorneys general have sought the governor’s office. All failed.

The state has previously had a female governor, though she was appointed to the position. Republican Jane Swift served as acting governor after Gov. Paul Cellucci stepped down in 2001 to become U.S. ambassador to Canada.

Tuesday’s election also featured several statewide contested Democratic primaries, including for attorney general and secretary of the commonwealth.

Former Boston City Councilor Andrea Campbell defeated workers’ rights attorney Shannon Liss-Riordan in the Democratic primary for attorney general. A week before the election, a third candidate, former assistant attorney general Quentin Palfrey, announced he was suspending his campaign and endorsed Campbell; he remained on the ballot.

Campbell would be the first Black woman to hold the office in Massachusetts if elected in November. She will face Republican Jay McMahon, a trial attorney who previously ran against Healey and lost.

Liss-Riordan pumped millions of her own money into her campaign — including $6.3 million in August alone. Healey earned an annual salary of more than $185,000 as attorney general.

Incumbent Democratic Secretary of the Commonwealth William Galvin, who is vying for an eighth term in office, defeated fellow Democrat Tanisha Sullivan, president of the Boston branch of the NAACP.

Galvin will face Republican Rayla Campbell in November. Campbell would be the first Black person to serve in the post if elected.

In the Democratic three-way race for lieutenant governor, Salem Mayor Kim Driscoll defeated state Rep. Tami Gouveia of Acton and state Sen. Eric Lesser of Longmeadow.

In the Democratic primary for state auditor, state Sen. Diana DiZoglio defeated transportation advocate Chris Dempsey for the chance to succeed Suzanne Bump, a Democrat who opted not to seek reelection. DiZoglio will face Republican Anthony Amore in November.

There are also contested races in the Democratic primary for auditor and in the Republican races for lieutenant governor.

None of the state’s nine incumbent Democratic U.S. House members is facing primary challengers. There were two contested Republican primaries in the 8th and 9th congressional districts.

(Copyright (c) 2024 Sunbeam Television. The Associated Press contributed to this report. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox