James Comey was terminated from his role as FBI director Tuesday, according to statements from both the U.S. Department of Justice and the president himself.

A letter obtained by NBC News from Trump to Comey states the president had been advised by administration officials to remove the FBI head.

“I have received the attached letters from the Attorney General and Deputy Attorney General of the United States recommending your dismissal as the Director of the Federal Bureau of Investigation. I have accepted their recommendation and you are hereby terminated and removed from office, effective immediately,” Trump told Comey.

BREAKING: Pres. Trump’s letter to FBI Director Comey informing him that he has been fired – @KatyTurNBC pic.twitter.com/oe26REZYMn — NBC Nightly News (@NBCNightlyNews) May 9, 2017

“While I greatly appreciate you informing me, on three separate occasions, that I am not under investigation, I nevertheless concur with the judgement of the Department of Justice that you are not able to effectively lead the Bureau.”

“It is essential that we find new leadership for the FBI that restores public trust and confidence in its vital law enforcement mission.”

Full text of AG Jeff Sessions recommendation to fire FBI head James Comey and President Trump’s letter firing him pic.twitter.com/zyMxQGtUkE — WikiLeaks (@wikileaks) May 9, 2017

The White House Press Secretary’s office also sent out a statement informing the press of the president’s action.

BREAKING: White House statement on firing of FBI Director Comey. pic.twitter.com/iV9ptQ32h9 — NBC Nightly News (@NBCNightlyNews) May 9, 2017

In a memorandum written by newly confirmed Deputy Attorney General Rod Rosenstein, numerous reasons are given for Comey’s dismissal.

Newly confirmed DAG Rod Rosenstein lays out the case for firing Comey in memo sent out by the White House https://t.co/K8Zoe0xzVP pic.twitter.com/0MdMjqMCi2 — Zoe Tillman (@ZoeTillman) May 9, 2017

Comey allegedly learned about his firing while speaking to FBI agents in Los Angeles.

Comey learned of firing as he addressed FBI employees in LA. TV screens in background flashed news of firing. Letter was then given to FBI. — Michael S. Schmidt (@nytmike) May 9, 2017

The firing comes just as the director testified before the House Intelligence Committee Monday regarding allegations that Russia interfered in the 2016 presidential election.

Over the weekend, Comey also called on the Justice Department to refute a Tweet sent by Trump that claimed the Obama administration had ordered a wiretap on Trump Tower.

On Sunday, the White House issued a statement requesting committees also look into the possibility the previous administration may have abused its executive authority.

Comey was appointed FBI director by President Obama in 2013.

The Save Infowars Super Sale is now live! Get up to 60% off our most popular products today!