The Department of Justice’s internal watchdog criticized former FBI Director James Comey for his “insubordinate” behavior during the investigation into Hillary Clinton’s e-mails, it was reported Wednesday.

The inspector general faulted Comey for going on TV in July 2016 to announce that he was ending the probe and then telling Congress he was reopening it less than two weeks before the election, according to ABC News.

Citing a draft of IG Michael Horowitz’s report, ABC said Comey was rebuked for failing to consult with then-Attorney General Loretta Lynch and other top DOJ officials before he announced the FBI completed its investigation into Clinton’s personal e-mail server.

During the July 5 news conference, Comey said there was no “clear evidence” that Clinton “intended to violate” the law, but called her handling of classified information “extremely careless.”

The report also slammed Lynch for her handling of the investigation, especially her June 2016 meeting with Bill Clinton on an Arizona airport tarmac as the FBI was investigating his wife.

Following that meeting, Lynch took the unusual step to say she would not recuse herself from the case, but would accept the FBI’s recommendations in the probe.

Horowitz’s draft report also said Comey ignored objections from inside the Justice Department when he alerted Congress that the FBI had reopened the probe into Clinton 11 days before the 2016 presidential election because e-mails were found on former Rep. Anthony Weiner’s laptop.

Weiner was the estranged husband of longtime Clinton aide Huma Abedin.

Before Comey alerted Congress on Oct. 28, at least one senior DOJ official informed the FBI that publicizing the decision so close to the election would violate longstanding policy in the department and would flout federal guidelines barring the disclosure of information related to an ongoing investigation.

A day later, cheers of “lock her up” echoed at a Donald Trump campaign rally in New Hampshire.

The Clinton camp has argued that the 11th-hour announcement sank her chances to be president.

In an interview with ABC in April, Comey said he was working on the assumption that Clinton would be victorious.

“I don’t remember spelling it out, but it had to have been, that she’s going to be elected president and if I hide this from the American people, she’ll be illegitimate the moment she’s elected, the moment this comes out,” he said.

ABC said there’s no indication that Trump has seen or will see the draft before it is released and cautioned that Horowitz could revise his report when current and former officials named in it respond to his conclusions.