The top FBI agent booted from special counsel Robert Mueller’s Russia probe for trashing President Trump in partisan text messages to his mistress has also emerged as a key player in the investigation that cleared Hillary Clinton over her email scandal.

Peter Strzok, a lead investigator on both probes, was involved in everything from toning down the feds’ assessment of Clinton’s wrongdoing to the questioning that led to former Trump national security adviser Michael Flynn’s conviction last week for lying to the FBI, according to reports.

And the Justice Department’s inspector general is now reviewing Strzok’s role in several politically sensitive probes and hopes to reach a conclusion “very early next year,” Fox News reported.

Strzok’s Democratic leanings also have piqued the interest of the House Intelligence Committee, Rep. Peter King (R-LI) told The Post on Tuesday.

King said he and his fellow Intel members want to review Strzok’s “text messages, emails and contacts,” along with his impact on the findings of the Clinton investigation and “why he was questioning Michael Flynn.”

“I think we should definitely question him. In fact, he’s one of the people we’ve been trying to get information on for the last several months,” King said.

“The FBI and Justice Department was stonewalling us. We had been tipped off about him.”

Strzok, 47, said nothing Tuesday morning as he left his Fairfax, Va., home, a tan-brick Colonial with an American flag hanging next to the front door.

Formerly the FBI’s No. 2 counterintelligence official, he served as Mueller’s lead investigator in the Russia probe until his sudden demotion in August to the FBI’s Human Resources Division.

Recent reports revealed that Mueller ousted Strzok over text messages he exchanged with a co-worker during the presidential campaign that attacked Trump and favored Clinton.

The co-worker has been identified by the Washington Post as FBI lawyer Lisa Page. The paper reported that Strzok — who’s married to a top lawyer at the Securities and Exchange Commission, Melissa Hodgman — had an extramarital affair with Page.

Page also was a member of Mueller’s team, but left two weeks before officials learned about the damning texts, the Washington Post said.

Strzok also took part in the FBI’s interview of Clinton over her use of a private email server while secretary of state under then-President Barack Obama, Fox News reported.

And he interviewed top Clinton aides Huma Abedin and Cheryl Mills, submitting notes that said both women denied knowing about Clinton’s secret server at the time — despite emails that showed they discussed the computer hardware, the Daily Caller reported.

Later, Strzok changed the draft wording of a July 2016 statement by then-FBI Director James Comey to accuse Clinton of being “extremely careless” with her emails instead of “grossly negligent,” CNN reported.

The crucial rewrite let Clinton avoid charges because “gross negligence” can result in prosecution.

Strzok also took part in the FBI’s Jan. 24 interview of Flynn, according to Circa reporter Sara Carter.

Flynn pledged to cooperate with Mueller in exchange for leniency for admittedly lying about two conversations in December 2016 with then-Russian Ambassador Sergey Kislyak and failing to fully inform the Justice Department about his financial dealings with the government of Turkey.

Amid the controversy over Strzok’s conduct, another top Mueller lieutenant was revealed Tuesday to have expressed anti-Trump leanings — heaping praise on then-acting Attorney General Sally Yates for defying the president over his first travel ban.

Andrew Weissman, the lead prosecutor in Mueller’s $18 million money-laundering case against ex-Trump campaign manager Paul Manfort, emailed Yates shorty after Trump fired her on Jan. 30, according to Judicial Watch.

“I am so proud,” Weissmann wrote in the subject line of the email.

In the body of his message, Weissmann added: “And in awe. Thank you so much. All my deepest respects, Andrew Weissmann.”

Additional reporting by Bruce Golding