​President Donald Trump’s lawyer Rudy Giuliani accused James Comey of trying to “frame” Trump after the Justice Department’s internal watchdog said the former FBI director violated agency policy in his handling of sensitive memos.

“In a case involving the President of the United States, it doesn’t take a genius to figure out that what Comey was trying to do was to frame Trump,” Giuliani told John Catsimatidis on his AM 970 radio show in an interview that aired Sunday.

The former mayor said “Comey … orchestrated the whole thing​.”

“If you look back on it now, there was never any need for Mueller​,” referring to special counsel Robert Mueller who was appointed shortly after Trump fired Comey in May 2017​.

​Inspector General ​Michael Horowitz released an 83-page report last Thursday that concluded Comey’s handling of memos of his conversations with Trump violated FBI regulations.

​It also said Comey ​leaked a memo to a friend, Columbia Law School professor Daniel Richman, who then gave it to a New York Times reporter.

​Horowitz said ​Comey’s intention was to have a special counsel appointed to investigate Russia’s meddling in the 2016 presidential election and whether Trump or his campaign associates colluded.

​The memo related to a conversation Trump had with Comey in which he urged the former G-man to ​”let Flynn go,” referring to former national security adviser Michael Flynn who was fired for lying to the FBI about his contacts with Russians during the campaign.