Since firing Comey last month, the president has denied reports that he sought a pledge of loyalty from the FBI director amid a Justice Department probe into possible coordination between Trump associates and Russian operatives. Comey's written remarks do support another Trump claim — that the FBI director repeatedly assured the president that he was not personally under investigation.
But overall, Comey's testimony portrays Trump as a domineering chief executive who made his FBI director deeply uncomfortable over the course of nine separate private conversations, beginning with their first meeting in early January before Trump was sworn into office. In that conversation, Comey warned the president-elect of a dossier that was circulating with unsubstantiated allegations against him and his advisers.
The details of the conversations as described by Comey are likely to further fuel the debate over whether the president may have attempted to obstruct justice by pressuring the FBI director about a sensitive investigation.
Senate Intelligence Committee Chairman Richard Burr (R-N.C.), who is leading the Senate probe of possible Russian coordination with Trump associates, said he was not alarmed by Comey's account.
"I don't think it's wrong to ask for loyalty of anyone inside an administration," Burr said. "I don't think of what I've read there's anything of wrongdoing."
Comey writes with almost novelistic detail about his interactions with the president, describing a call on Jan. 27 around lunchtime inviting him to dinner.
"It was unclear from the conversation who else was going to be at the dinner, although I assumed there would be others," Comey wrote. "It turned out to be just the two of us, seated at a small oval table in the center of the Green Room. Two Navy stewards waited on us, only entering the room to serve food and drinks."
The president began the conversation, Comey wrote, by asking him whether he wanted to stay on as FBI director, "which I found strange because he had already told me twice in earlier conversations that he hoped I would stay, and I had assured him that I intended to."
The president replied, according to Comey, that lots of people wanted his job and "he would understand if I wanted to walk away."
Comey's instincts, he wrote, were that both the setting and the conversation "meant the dinner was, at least in part, an effort to have me ask for my job and create some sort of patronage relationship. That concerned me greatly, given the FBI's traditionally independent status in the executive branch."
The president then made his demand for loyalty.
"I didn't move, speak, or change my facial expression in any way during the awkward silence that followed," Comey wrote. "We simply looked at each other in silence. The conversation then moved on, but he returned to the subject near the end of our dinner."
When prompted again on the subject of loyalty, Comey said he replied, "You will always get honesty from me."
Comey said that once before Trump's inauguration, and again at the January dinner, he assured the president that he was not personally under investigation. He also told the president later on that he had shared that information with congressional leaders.
In his letter firing Comey, Trump wrote that three times Comey had assured him he was not under investigation. After the firing, Comey's defenders publicly challenged the accuracy of that statement.
Trump's lawyer, Marc Kasowitz, said Wednesday that 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. The President feels completely and totally vindicated."
Overall, Comey's written testimony describes a strained, awkward relationship between the two powerful men, punctuated by exchanges in which the president expressed his displeasure about the Russia probe in ways that alarmed the FBI director. Even the number of contacts between the two were alarming to Comey, who noted that he only spoke twice privately with President Barack Obama.
The written testimony also recounts a face-to-face conversation the two men had on Feb. 14 in the Oval Office, where many senior officials had gathered for a counterterrorism briefing.
After the meeting, the president asked everyone to leave. Attorney General Jeff Sessions and senior adviser Jared Kushner lingered in the room, but the president told them to leave, too, according to Comey.
When the door by the grandfather clock closed, Comey wrote, the president said, "I want to talk about Mike Flynn'' — the former national security adviser who was forced out after disclosures about his conversations with the Russian ambassador to the United States, Sergey Kislyak. Flynn had resigned a day earlier.
"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," the president said, according to Comey. The FBI director replied only that "he is a good guy.''
In that conversation, the president repeatedly complained to the FBI director about leaks, and Comey said he agreed with him about the harm caused by leaks of classified information.
Comey said he understood the president to be asking for him to "drop any investigation of Flynn in connection with false statements about his conversations with the Russian ambassador in December. I did not understand the president to be talking about the broader investigation into Russia or possible links to his campaign.''
The former FBI director wrote that he found the conversation "very concerning, given the FBI's role as an independent investigative agency.''
Later, Comey complained to Sessions that he should not have been left alone with the president, and Sessions did not reply, according to the written testimony. Sessions declined to comment.
Then, in late March, Trump called Comey at the FBI. In that conversation, the president called the Russia probe "a cloud'' hanging over his ability to lead the country.
He also expressed continued frustration that unsubstantiated allegations in a private dossier about him had become public, including lurid claims of sexual activity while in Russia.
"He said he had nothing to do with Russia, had not been involved with hookers in Russia, and had always assumed he had been recorded when in Russia,'' Comey wrote.
"He asked what we could do to 'lift the cloud.' I responded that we were investigating the matter as quickly as we could, and that there would be great benefit, if we didn't find anything, to our having done the work well. He agreed, but then re-emphasized the problems this was causing him," Comey wrote.
After that phone call with the president, Comey said he called acting deputy attorney general Dana Boente to tell him what was discussed and to "await his guidance." Comey said he never heard back from Boente. A spokesman for Boente did not immediately respond to a request for comment.
Then, on April 11, Comey wrote, the president called him and asked him what he had done about getting out word that he was not personally under investigation. The president told him "the cloud" of the probe was interfering with his ability to do his job.
"I have been very loyal to you, very loyal; we had that thing you know," Trump told Comey, according to the written testimony. "I did not reply or ask him what he meant by 'that thing.' "
He added: "That was the last time I spoke with President Trump."
Sari Horwitz and Karoun Demirjian contributed to this report.