Democrats have gained control of the House, hitting the magic 218-seat mark to guarantee a majority, after flipping multiple Republican-controlled seats.

The change is significant because Democrats will have the ability to investigate Donald Trump, including the power to subpoena the administration.

The House minority leader, Nancy Pelosi, said the win would allow Democrats to “restore checks and balances” on the administration, a hint at future investigations.

Republicans will maintain control of the US Senate, and incumbent Republican Ted Cruz has squeaked out a win against Democrat Beto O’Rourke in one of the most closely watched races in the nation. The GOP also knocked out Democratic incumbents in Indiana, Missouri and North Dakota, while the Democrats picked up a senate seat in Nevada.

In Florida, Trump-styled Republican Ron DeSantis won after a racially charged campaign against progressive black Democrat Andrew Gillum. At one point, just a few hundred votes separated them. Had Gillum won, he would have been Florida’s first black governor. In a tight Senate race in the same state, Republican Rick Scott unseated Democrat Bill Nelson.