A judge in Georgia has dismissed a sprawling 2020 election interference case against Donald Trump, ending the last effort to prosecute the president for allegedly attempting to overturn his loss to Joe Biden.

Peter Skandalakis, who took over the case after the initial prosecutor’s removal, asked Judge Scott McAfee to dismiss the charges on Wednesday.

Trump’s lawyer Steve Sadow praised the decision to end the “political persecution” against the president.

The dismissal concludes the last of four criminal cases levelled against Trump since he first left the White House, only one of which saw trial and resulted in a conviction.

A Georgia appeals court removed Fulton County District Attorney Fani Willis, a Democrat, from the case after it determined a romantic relationship with a special prosecutor created an “appearance of impropriety”.

Mr Skandalakis, executive director of the non-partisan agency Prosecuting Attorneys’ Council of Georgia, appointed himself to the case after Willis’ disqualification and when other state prosecutors declined to take the case.

In Wednesday’s motion to a Fulton County judge, he said he was discontinuing the case “to serve the interests of justice and promote judicial finality”.