President Trump has admitted for the first time that his personal lawyer Michael Cohen represented him in the “crazy Stormy Daniels deal,” despite previously denying that he knew about the payment Cohen made to the porn star.

“Michael would represent me on some things. He represents me like with this crazy Stormy Daniels deal, he represented me,” Trump said Thursday during a half-hour phone interview with “Fox & Friends.”

Trump has previously said he had no idea that Cohen paid $130,000 in hush money to Daniels days before the 2016 presidential election to keep her quiet about an alleged affair they had in 2006.

When pressed by reporters aboard Air Force One last month on whether he had knowledge of the payment, Trump responded “No” and then deferred all queries to Cohen.

“You’ll have to ask Michael Cohen,” he said at the time. “Michael is my attorney. You’ll have to ask Michael.”

Michael Avenatti, the attorney representing Daniels, whose real name is Stephanie Clifford, took to Twitter to gloat following Trump’s admission.

“Mr. Trump and Mr. Cohen previously represented to the American people that Mr. Cohen acted on his own and Mr. Trump knew nothing about the agreement with my client, the $130k payment, etc. As I predicted, that has now been shown to be completely false. #basta,” Avenatti tweeted.

Earlier this month, the feds raided Cohen’s office and hotel room, seizing documents related to a number of topics, including the payment he made to Daniels on behalf of Trump.

Daniels has filed a lawsuit against Trump over their alleged affair, and it emerged this week that Cohen will assert his Fifth Amendment right against self-incrimination in the case.

During the “Fox & Friends” interview, Trump drew space between himself and Cohen, saying his longtime lawyer only dealt with a “tiny, tiny little fraction” of Trump’s legal work.

“Michael is a good person,” Trump said.

“This doesn’t have to do with me,” he added of the federal investigation into Cohen.

“Michael is a businessman. He also practices law, but I would say the big thing is his business and they’re [the feds] looking at something that has to do with his business. I have nothing to do with his business.”

The commander-in-chief noted that he “has many attorneys … sadly, I have so many attorneys, you wouldn’t even believe it.”

“From what I understand, [the feds are] looking at his businesses, and I hope he’s in great shape,” the president said. “I’m not involved, and I’ve been told I’m not involved.”