The former New York City mayor was the face of Trump’s failed attempt to dismiss the presidential election results, but his legal work with the former president goes back years.

Miller said in a tweet that Giuliani has remained an “ally and friend” and is not just representing Trump because there are no pending cases in which he is involved. Trump had signaled frustration with Giuliani last month after becoming the first president in US history to be charged twice. He urged his staff to stop paying Giuliani’s legal fees, a person familiar with the matter told CNN, although aides were not clear whether Trump was serious about his instructions. Now out of office and unprotected by the presidency, Trump faces multiple criminal investigations, civil investigations, and defamation suits from two women accusing him of sexual assault. Georgia officials have announced that the former president is facing two new investigations into appeals He went on with election officials to dismiss the state’s election results.

And Trump is facing a criminal investigation in New York, where Manhattan prosecutors are investigating whether the Trump organization has violated state laws such as insurance fraud, tax fraud or other attempted fraud.

The scope of the investigation is broad. Prosecutors are investigating, among other things, whether the Trump organization misled financial institutions into applying for loans or violated tax laws by donating a conservation effort to their property called Seven Springs and making deductions from fees paid to a consultant.

The former president has also privately raised concerns over the January 6 riot he allegedly instigated in the U.S. Capitol.

“He’s worried about it,” an adviser close to Trump told CNN.

While Giuliani is one of Trump’s toughest public defenders, his work on behalf of the former president has created legal problems of its own.

Mississippi Democratic MP Bennie Thompson filed a civil suit Tuesday accusing Giuliani and Trump of conspiring with far-right groups Proud Boys and Oath Keepers to spark the January 6 insurrection.

Giuliani, the lawsuit alleges, upset the crowd when he told supporters, “Let’s go to court by fighting.”

In addition, Giuliani is facing lawsuits from two voting technology companies, Smartmatic and Dominion Voting Systems, in connection with his months of accepting unsubstantiated conspiracy theories about the 2020 election.

EXPLANATION: The heading of this story has been updated to clarify that Rudy Giuliani is not currently representing the former president.