A U.S. judge on Monday dismissed the federal criminal case accusing Donald Trump of attempting to overturn his 2020 election defeat after prosecutors moved to drop that prosecution and a second case against the president-elect, citing Justice Department policy against prosecuting a sitting president.

The order from U.S. District Judge Tanya Chutkan puts an end to the federal effort to hold Trump criminally responsible for his attempts to hold on to power after losing the 2020 election, culminating in the Jan. 6, 2021 attack on the U.S. Capitol by a mob of his supporters.

The move came after Special Counsel Jack Smith, the lead prosecutor overseeing both cases, moved to dismiss the election case and end his attempt to revive a separate case accusing Trump of illegally retaining classified documents when he left office in 2021 after his first term as president.