FBI Director James Comey went rogue when he told Congress that he has reopened the investigation into Hillary Clinton’s e-mails — defying direct orders from his boss, Attorney General Loretta Lynch, according to multiple reports.

“Comey made an independent decision to alert the Hill,” a choice he made despite Lynch’s explicit instructions that he say nothing, a Justice official told the Washington Post on Saturday.

It’s Justice Department policy not to comment on any ongoing investigation, especially when doing so could affect an impending election.

But Comey felt that the upcoming election was precisely why the public needed to be informed, an administration official told the New Yorker.

Comey was concerned that word of the re-opened investigation would leak out and raise questions of a coverup.

He also wanted to keep his promise to update Congress with any developments in the case, the administration source said.

The probe was reopened after e-mails relevant to the probe into Clinton’s private server turned up in the computer of disgraced ex-congressman Anthony Weiner, the estranged husband of top Clinton aide Huma Abedin.

Weiner was being investigated separately after allegations that he’d sexted with a 15-year-old girl.

Comey — a Republican appointed by President Obama — had previously been under fire from Congressional GOPers after his announcement in July that Clinton would not be indicted for the classified emails on her private server.

But jubilant Republicans, including GOP presidential nominee Donald Trump, are now heaping praise on the nation’s top law man.

“The FBI, I think they’re going to right the ship, folks,” Trump said in a Manchester, New Hampshire stump speech Friday. “I think they’re going to right the ship. And they’re going to save their great reputation by doing so.”

And it was Democrats, including Clinton, who were stamping their feet.

Clinton campaign officials hammered Comey in a Saturday press call, demanding that he release details of the re-opened investigation.