President Trump has decided to keep James Comey on as director of the FBI, The New York Times reported Tuesday morning.

Comey faced heavy criticism during the presidential campaign from both sides of the aisle for his treatment of the investigation into Democratic nominee Hillary Clinton Hillary Diane Rodham ClintonHillicon Valley: FBI chief says Russia is trying to interfere in election to undermine Biden | Treasury Dept. sanctions Iranian government-backed hackers The Hill's Campaign Report: Arizona shifts towards Biden | Biden prepares for drive-in town hall | New Biden ad targets Latino voters FBI chief says Russia is trying to interfere in election to undermine Biden MORE’s use of a private email server while secretary of State.

FBI directors are appointed to 10-year terms to limit the political pressure on their position. Comey's began in 2013 under President Obama, but Trump has the power to dismiss Comey if he wants.

While presidents typically keep FBI directors for their full terms, Comey's fate had been up in the air due to the turbulent campaign.

ADVERTISEMENT

Trump and other Republicans lambasted Comey for his decision not to charge Clinton, despite noting her "extreme carelessness" with classified material.

The then-GOP nominee regularly brought up Clinton's case to claim that the government was "rigged" and protecting her from certain conviction.

But a few months later, it was Democrats crying foul for Comey's decision to disclose less than two weeks before the election that the FBI was investigating new emails potentially related to the probe into Clinton's server.

Many Democrats believe that disclosure sent a pang of uncertainty through the electorate that hurt Clinton's chances of winning.

Comey ultimately said two days before Election Day that the emails were mostly duplicates of emails already reviewed and brought to light no new facts.

Trump had not publicly addressed Comey's fate in the weeks after his election, although Comey visited Trump's Manhattan high-rise earlier this month as part of a presentation by the intelligence community about its evidence that Russia was behind the hacks on the Democratic National Committee and other Democratic organizations.

The FBI is still reportedly looking into ties between Trump campaign staffers and the Russian government.

Comey and Trump saw each other again at a White House event with law enforcement over the weekend, where Trump beckoned Comey to come over to him.

"He's become more famous than me," Trump said, shaking Comey's hand and patting him on the back.

— Updated at 9:28 a.m.