New Hampshire Executive Council member Chris Pappas won the Democratic primary in the race to replace retiring Rep. Carol Shea-Porter Carol Shea-PorterThe 31 Trump districts that will determine the next House majority New Hampshire New Members 2019 Democrat Chris Pappas wins New Hampshire House seat MORE (D-N.H.).

Pappas, who was seen as the local establishment favorite, defeated 10 other Democrats running in a top House district that the party needs to keep in the battle to take over the House, The Associated Press projected.

ADVERTISEMENT

He won with 56 percent of the vote.

Pappas earned the support of most New Hampshire Democratic lawmakers in the primary, including Sens. Jeanne Shaheen Cynthia (Jeanne) Jeanne ShaheenSenate Democrats introduce bill to sanction Russians over Taliban bounties Trump-backed candidate wins NH GOP Senate primary to take on Shaheen Democratic senator urges Trump to respond to Russian aggression MORE and Maggie Hassan Margaret (Maggie) HassanDemocrats step up hardball tactics as Supreme Court fight heats up Congress needs to prioritize government digital service delivery Senate Democrats demand answers on migrant child trafficking during pandemic MORE.

If Pappas wins in November, he’d be the first openly gay member of Congress from New Hampshire.

Pappas’s toughest challenge came from Marine veteran and former Obama official Maura Sullivan.

Sullivan had the backing of EMILY’s List, a national group that aims to get women elected to office, an important endorsement in a cycle that's shaping up to be another “Year of the Woman.”

Sullivan also had support from other national figures including Rep. Seth Moulton Seth MoultonThe Hill's Morning Report - Presented by Facebook - Markey defeats Kennedy; Trump lauds America's enforcers in Wisconsin Moulton fends off primary challenges in Massachusetts Portland: The Pentagon should step up or pipe down MORE (D-Mass.), who’s looking to recruit more veterans to run for office. But Sullivan faced carpetbagging attacks since she only moved to New Hampshire’s 1st District last year.

Pappas also defeated Levi Sanders, a Social Security benefits specialist and the son of Sen. Bernie Sanders Bernie SandersButtigieg stands in as Pence for Harris's debate practice Bernie Sanders warns of 'nightmare scenario' if Trump refuses election results Harris joins women's voter mobilization event also featuring Pelosi, Gloria Steinem, Jane Fonda MORE (I-Vt.). Levi Sanders was considered an underdog, and notably did not get his father’s endorsement. The senator has argued his son needed to win the race on his own.

New Hampshire’s 1st District has been a perennial swing seat and one that has flipped between Shea-Porter and former Rep. Frank Guinta (R-N.H.) for four election cycles.

Shea-Porter won it in 2016, but so did President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE, though by less than 2 points.

In November Pappas will face Republican Eddie Edwards, a former police chief who’s been endorsed by Rudy Giuliani, Trump’s personal lawyer and a former New York City mayor.