Michael Cohen, President Trump’s former personal lawyer, has resigned from the Republican National Committee’s Finance Committee — and took a shot at the administration’s immigration policy, according to a report.

Cohen cited the ongoing probe by special counsel Robert Mueller into suspected collusion between Trump’s campaign and Russia as one reason he was stepping down as the committee’s deputy finance chairman, sources told ABC News.

“This important role requires the full time attention and dedication of each member. Given the ongoing Mueller and [US Attorney for the Southern District of New York] investigations, that simply is impossible for me to do,” he wrote RNC Chairwoman Ronna McDaniel, the news outlet reported.

Trump’s former longtime confidant, who is under criminal investigation, also blasted the president’s “zero tolerance” policy under which children have been separated from their parents after illegal border crossings.

“As the son of a Polish holocaust survivor, the images and sounds of this family separation policy is heart wrenching,” Cohen wrote, marking the first time he has distanced himself from Trump.

“While I strongly support measures that will secure our porous borders, children should never be used as bargaining chips,” he added.

Cohen’s resignation comes amid reports that he is prepared to cooperate with investigators against the president and has hired New York lawyer Guy Petrillo to represent him in a federal probe into his business dealings.

The Manhattan US Attorney’s Office is investigating Cohen over his pre-election payment of $130,000 to silence porn star Stormy Daniels, who claims to have had an affair with Trump in 2006.

An RNC official told Business Insider that McDaniel accepted Cohen’s resignation, adding that he has been “inactive on the committee for several months.”

On Friday, Trump said Cohen no longer represents him.

“I haven’t spoken to Michael in a long time,” Trump told reporters, according to The Hill. “No, he’s not my lawyer anymore, but I always liked Michael. And he’s a good person.”