President Trump’s private lawyer Michael Cohen has dropped libel suits against BuzzFeed and research firm Fusion GPS over the publication of a controversial dossier that claims the president has connections to Russia.

Cohen, who has been under criminal investigation by the feds for months and whose office and home were raided by FBI agents last week, abandoned the lawsuits late Wednesday.

“The decision to voluntarily discontinue these cases was a difficult one,” Cohen’s attorney David Schwartz told Politico, which first reported the story. “We believe the defendants defamed my client, and vindicating Mr. Cohen’s rights was — and still remains — important. But given the events that have unfolded, and the time, attention, and resources needed to prosecute these matters, we have dismissed the matters, despite their merits.”

The unsubstantiated dossier, compiled by former British intelligence officer Christopher Steele, said Cohen met in the summer of 2016 with a Kremlin bigwig in Prague to talk about collusion in the election.

The alleged meeting was revealed when BuzzFeed published the dossier in January 2017.

Trump called the document “false and fake” and Cohen has denied he ever visited the Czech capital.

Cohen is also caught up in a legal fight with porn star Stormy Daniels and her lawyer, Michael Avenatti, over a $130,000 payment he made to her weeks before the 2016 election as part of a nondisclosure agreement to keep her quiet about an affair she alleges she had with Trump.

Daniels, whose real name is Stephanie Clifford, and her lawyer are challenging the validity of the agreement because they say the president never signed it.

In a statement, Fusion GPS said “it appears that Mr. Cohen can now focus on his many other legal travails.”

BuzzFeed defended its decision to publish the document and bashed Cohen for a worthless lawsuit.

“Its interest to the public is, and always has been, obvious,” spokesman Matt Mittenthal said in a statement. “Today’s news suggests that Donald Trump’s personal lawyer no longer thinks an attack on the free press is worth his time.”

If he had followed through on the suits, Cohen would have had to present documentation and sworn testimony to support his case.