Sacked FBI director accuses Donald Trump of meddling in investigations.

Former FBI Director James Comey says US President Donald Trump asked him to drop an investigation of former national security adviser Michael Flynn as part of a probe into Russia’s alleged meddling in the 2016 presidential election.

In written testimony on Wednesday, Comey said Trump told him at a meeting in the White House in February: “I hope you can see your way clear to letting this go, to letting Flynn go.”

The testimony from Comey, who will appear in person before a Senate panel at midnight (AEST) on Thursday, puts more pressure on the Republican whose presidency has been overshadowed by allegations that Moscow helped him win last year’s election.

But Trump, through his outside counsel, said he felt “completely and totally vindicated” by the account.

“The president is pleased that Mr Comey has finally publicly confirmed his private reports that the president was not under investigation in any Russian probe,” Marc Kasowitz, Trump’s lawyer, said in a statement.

Trump fired Flynn in February in a controversy over contacts between the retired general and the Russian ambassador to the United States. The FBI has been investigating Flynn as it looks into allegations of links between Russia and the Trump campaign.

In his statement, posted on the Senate Intelligence Committee’s website, Comey said Trump also called him on March 30 to say he had nothing to do with Russia and asked what “we could do to lift the cloud” of the FBI’s Russia investigation.

During that phone call, Comey said he told Trump the FBI was not investigating the president personally. “He repeatedly told me: ‘We need to get that fact out,'” Comey said.

In a dramatic written testimony, Comey claims the US President "expected loyalty" in regards to the FBI's investigations. (Image: Getty)

Comey said he had told Trump on three occasions he was not being investigated, confirming an earlier account from the president.

Several congressional committees, as well as the Federal Bureau of Investigation and a special counsel, are looking into reports that Russia tried to tilt last November's election in Trump's favour, using means such as hacking into the emails of senior Democrats. Trump and the Kremlin have separately denied any collusion.

Some legal experts said Comey's written statement could be used to show that Trump engaged in obstruction of justice.

"It shows the president was doing everything he could to shut down the Flynn investigation," said Andrew Wright, a professor of criminal law at Savannah Law School.

Bruce Green, a professor of law at Fordham University School of Law, said, however, it would be difficult to show that Trump intended to obstruct justice. Trump could say he was merely vouching for Flynn's character and voicing concerns about how the probe was interfering with his ability to function effectively as president, Green said.

While a sitting president is unlikely to face criminal prosecution, obstruction of justice is an offence that could lead to impeachment hearings.

Listen: Mamamia Out Loud attempts to explain the Trump, Comey, FBI drama in the US for anyone else who is wondering what the heck is going on (post continues after audio...)

In impeachment proceedings, Congress must determine that a president committed a "high crime or misdemeanor."

Comey said Trump told him at a one-on-one dinner on January 27, a week after the president took office, that: "I need loyalty. I expect loyalty."

During the dinner, the president asked him if he wanted to stay on as FBI director, Comey said. The former FBI head said he became concerned that Trump was trying to create "some sort of patronage relationship."

After a February 14 meeting on counterterrorism in the Oval Office, Trump dismissed all the participants except Comey, according to the testimony.

The president then initiated a conversation about Flynn.

Comey quoted Trump as telling him: "I hope you can see your way clear to letting this go, to letting Flynn go. He is a good guy. I hope you can let this go."