A Democratic candidate won a key Pennsylvania state House seat on Tuesday, flipping the district from red to blue for the first time in decades.

Representative-elect Helen Tai won a special election for Pennsylvania House District 178, a suburban Philadelphia seat that Republicans have held since 1983, according to liberal news website Daily Kos.

Tai beat out Republican Wendi Thomas to serve out the remaining six months of former state Rep. Scott Petri’s (R) term. Petri resigned to take over the Philadelphia Parking Authority. Tai and Thomas will both be on the ballot in November for the next full two-year term.

ADVERTISEMENT

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 won the district by 3-point margin in 2016, and the district went to Mitt Romney Willard (Mitt) Mitt RomneySenate GOP aims to confirm Trump court pick by Oct. 29: report The Hill's Campaign Report: GOP set to ask SCOTUS to limit mail-in voting Senate GOP sees early Supreme Court vote as political booster shot MORE by a wider 13-point margin in 2012 against former President Obama.

Former Vice President Joe Biden Joe BidenOmar fires back at Trump over rally remarks: 'This is my country' Trump mocks Biden appearance, mask use ahead of first debate Trump attacks Omar for criticizing US: 'How did you do where you came from?' MORE endorsed Tai in the race, as did multiple other high-profile Democrats.

Tai said in a Facebook Live broadcast that her victory was a part of “the big blue wave” that Democrats have been hoping for in the upcoming midterms, according to The Intelligencer.

“I think [this is happening] because people are so determined and they’ve said ‘enough of this,’” Tai said. “The wave is saying ‘we need to do what’s right.’”

Republicans also flipped a state House seat, making the election a “draw,” according to Politics PA, a political news blog. GOP candidate Tim O’Neal defeated Democrat Clark Mitchell by 11 points to fill a seat that had been in Democratic hands since 1988.

O’Neal, who also ran unopposed in the GOP primary, will take on Mitchell again in the November election for the full two-year term. The seat was vacated by state Rep. Brandon Neuman (D), who stepped down when he was sworn in as a judge near Pittsburgh.

--Updated at 10 a.m.