Democrats managed to hold on to the highly contested seat in Pennsylvania’s 17th Congressional District after Rep. Conor Lamb, a moderate Democrat from Mount Lebanon, announced his resignation last year.  

Democrat Chris Deluzio secured the victory over Republican candidate Jeremy Shaffer by garnering roughly 52% of the vote with 98% of the votes tallied by Wednesday morning, The Associated Press projects.

Shaffer conceded to Deluzio Tuesday around 11 p.m.

Chris Deluzio

Chris Deluzio, Democratic congressional candidate for Pennsylvania, speaks to members of the media outside a polling location in Aspinwall, Pa., Tuesday, Nov. 8, 2022.  (Justin Merriman/Bloomberg via Getty Images)

2022 MIDTERM ELECTIONS: LIVE UPDATES

The GOP candidate reportedly told his supporters he wanted "to congratulate Chris Deluzio on the win."

"We honor the results that are there," he said, according to the Pittsburgh Post-Gazette. "We’re going to be continuing to work in our communities to try to make a difference. This country is too important to give up on."

Deluzio championed his win in a statement and said he and his team won "because we offered something different."

"The good people of western Pennsylvania believe, as I do, in fighting for our common good, for our shared prosperity, for a government that serves all of us and puts people first," he reportedly added. 

President Biden speaks about John Fetterman in Pennsylvania campaign event

President Biden speaks during the Pennsylvania Democratic Party's 3rd Annual Independence Dinner in Philadelphia Oct. 28, 2022. (AP Photo/Matt Rourke)

PENNSYLVANIA ELECTION RESULTS: REP. MATT CARTWRIGHT WINS RE-ELECTION AGAINST TRUMP-ENDORSED CHALLENGER

The loss comes as the GOP and Democrats invested heavily in campaigning in the swing state as Republicans look to achieve a majority in the House of Representatives. 

The race was the third-most expensive House race in Pennsylvania, with the two candidates raising a combined $5.2 million, according to Open Secrets.

But Lamb’s vacant seat wasn’t the only open Pennsylvania slot Republicans lost in Tuesday's midterm elections.

Democratic candidate John Fetterman also secured the Senate seat that Republicans had been vying for since GOP Sen. Pat Toomey announced his resignation in 2020.

John Fetterman

John Fetterman, Pennsylvania's lieutenant governor and a Democratic candidate for U.S. senator, speaks to supporters at a rally in Pittsburgh. (Branden Eastwood/AFP via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

Democrats secured at least six of the 10 Pennsylvania House seats, while Republicans have only secured three so far.

One seat has yet to be called. Democratic incumbent candidate Susan Wild maintains a narrow margin over Republican challenger Lisa Scheller by over 4,700 votes, which is less than a 1% margin of victory, with 98% of the votes tallied.