Democrats have flipped the US Senate and House of Representatives in a massive rebuke of Republicans and Donald Trump’s agenda. With Democrats majorities in both chambers, the final two years of Trump’s presidency will look markedly different from the first half. But what can Democrats actually do with congressional power?

Related: Republicans suffer stunning defeat as voters deliver verdict on Trump agenda

What can Democrats do with a House majority?

After a string of wins in Republican districts across the country pushed Democrats past the 218-seat threshold needed to capture a majority, Hakeem Jeffries is poised to become majority leader and Republicans will lose their ability to pass legislation through the chamber without Democratic support. A Democratic majority can launch investigations into the administration, demand documents and testimony and subject senior officials to sustained congressional scrutiny.

They might also come under pressure from their support base to impeach Trump for a third time.

What can Democrats do with a Senate majority?

The Senate confirms cabinet officials, ambassadors and federal judges, including supreme court nominees. A Democratic majority can block or delay many of Trump’s appointments and force the White House to negotiate over legislation.

Related: Top Democrat tells Trump and Republicans to ‘lawyer up’ after US midterm defeats

What will Democrats investigate?

Political reporter Joseph Gedeon laid out the most consequential investigations Democrats could launch. Here are a few of the investigations:

Related: Targeting Trump: how Democrats plan to investigate the president if they win Congress

What did the Democrats do last time they flipped the House under Trump?

In 2018, halfway through Trump’s first term, the Democrats flipped the House of Representatives in a sweeping blue wave. House committees quickly launched dozens of inquiries into his businesses, his handling of the Russia investigations, and possible conflicts of interest.

Just over a year after the 2018 midterms, after months of leftwing calls for impeachment, the House voted mostly on party lines to impeach Trump.

Democrats had accused Trump of pursuing a scheme to cheat in the upcoming presidential election by pressuring Ukraine to manufacture bad news about Joe Biden and then blocking congressional oversight. Trump was later acquitted in the Republican-controlled Senate on both articles of impeachment.

In 2021, Trump was impeached – and acquitted – a second time for inciting the January 6 attack on the US Capitol.