NEW YORK — Rudolph Giuliani, the former New York City mayor, federal prosecutor and legal adviser to Donald Trump, was disbarred Tuesday in New York after a court found he repeatedly made false statements about Trump’s 2020 election loss.

The Manhattan appeals court ruled that Giuliani, who had his New York law license suspended in 2021 for making false statements about the election, is no longer allowed to practice law in the state, effective immediately.

“The seriousness of respondent’s misconduct cannot be overstated,” the decision reads. Giuliani “flagrantly misused” his position and “baselessly attacked and undermined the integrity of this country’s electoral process.”

Giuliani said Tuesday that he wasn’t surprised to lose his law license in his hometown, claiming in a post on X that the case was “based on an activist complaint, replete with false arguments.”

The former federal prosecutor of the mob was admitted to the New York bar in 1969, but before pleading Trump’s case in November 2020, Giuliani had not appeared in court as an attorney since 1992, according to court records.

A Giuliani spokesperson, Ted Goodman, said the man once dubbed “America’s mayor” will appeal the “objectively flawed” decision by the midlevel state court.

Giuliani argued in hearings last October that he believed the claims he was making on behalf of the Trump campaign were true, but the court, in its decision, said it wasn’t convinced.

Among other things, the court said it found that Giuliani “falsely and dishonestly” claimed during the 2020 presidential election that thousands of votes were cast in the names of dead people in Philadelphia, including a ballot in the name of the late boxing great Joe Frazier. He also falsely claimed that people were taken from nearby Camden, New Jersey, to vote illegally in the Pennsylvania city, the court said.

Giuliani is also facing criminal charges in Georgia and Arizona over his role in the effort to overturn the 2020 election. He has pleaded not guilty in both cases.