Democrats won back control of the House and claimed victory in a few gubernatorial races on Tuesday in what has been seen as a rebuke of President Donald Trump and his policies.

The results come after a contentious midterm election cycle that saw progressive candidates rise and more traditional Democrats fall.

Republicans managed to keep control of the Senate and strengthened their majority in the process, having picked up seats from Democrats, per the New York Times.

Democrats picked up 28 House seats, after garnering support in urban and suburban areas. The Party needed 218 House seats to gain back control of the House, which they lost in 2010.

Trump called Nancy Pelosi to congratulate her on the Democrats’ victory but still claimed a “big win” for himself in the bitter midterm elections.

“Those that worked with me in this incredible Midterm Election, embracing certain policies and principles, did very well,” he tweeted on Wednesday. “Those that did not, say goodbye! Yesterday was such a very Big Win, and all under the pressure of a Nasty and Hostile Media!

https://twitter.com/realDonaldTrump/status/1060141780878979072?ref_src=twsrc%5Etfw

Both parties saw victories in the many gubernatorial races around the country. Tallahassee Mayor Andrew Gillum, who was looking to become the first Black governor of Florida, conceded in his race against Republican Ron DeSantis.

Embattled Gov. Scott Walker, a Wisconsin Republican who’s been a target of Democrats for years, lost his re-election bid, while Democrat Gretchen Whitmer bested her Republican opponent Bill Schuette.

Stacey Abrams, who’s trailing behind Republican Brian Kemp, has refused to concede in Georgia’s gubernatorial race.

“I’m here . . . to tell you votes remain to be counted. [There are] voices that are waiting to be heard,” Abrams said on Wednesday to her supporters.

Pelosi, who’s poised to become Speaker of the House for the second time and has committed to providing checks on the president, celebrated her party’s victory on Tuesday.

When Democrats win — and we will win tonight — we will have a Congress that is open, transparent and accountable to the American people,” she said to an energized crowd. “Are you ready for a great Democratic victory?”

According to the Times, 100 women will be in the House for the first time in the country’s history.