WASHINGTON — Another day, another legal battle. Or two. Or three. In one court, a longtime political ally just went on trial. In another, judges ordered his accounting firm to turn over his tax returns. In still another, a writer who claims he raped her filed a defamation lawsuit against him. In a fourth, a judge overturned an anti-abortion policy.

And that was all in the space of barely 48 hours.

Even as President Trump tries to fend off the ultimate threat of impeachment for high crimes and misdemeanors, he and his team are waging simultaneous legal battles on a wide array of fronts, facing perhaps more significant challenges with more consequences to his presidency than any modern occupant of the Oval Office has confronted at one time.

It requires a scorecard just to keep track. Mr. Trump is being accused in court of exceeding his power on policy decisions and defying the law on personal matters. He is resisting efforts to force his aides to reveal the inner workings of his White House. Last month, four federal judges in four states ruled against him on a single day. And even as he relies on lawyers to fight his battles, the lawyers themselves are in trouble. One is now in prison; another faces a criminal investigation.

“Trump attracts lawsuits and prosecutors like metal filings to a magnet,” said Michael Waldman, the president of the Brennan Center for Justice at New York University School of Law and a former aide to President Bill Clinton.