Editor's Note: Andrew McCabe, the former deputy director of the FBI, was named acting director of the bureau after President Donald Trump fired his boss, Director James Comey, on May 9, 2017. McCabe would himself be fired less than a year later. In an exclusive adaptation from his book, The Threat , to be published next week by St. Martin’s Press, McCabe describes his encounters with President Trump and the steps taken to protect the FBI’s investigation into Russian efforts to influence the 2016 elections—and into the Trump campaign’s possible collusion with Russian actors.

On Wednesday, May 10, 2017, my first full day on the job as acting director of the FBI, I sat down with senior staff involved in the Russia case—the investigation into alleged ties between the Trump campaign and the Russian government. As the meeting began, my secretary relayed a message that the White House was calling. The president himself was on the line. I had spoken with him the night before, in the Oval Office, when he told me he had fired James Comey.

A call like this was highly unusual. Presidents do not, typically, call FBI directors. There should be no direct contact between the president and the director, except for national-security purposes. The reason is simple. Investigations and prosecutions need to be pursued without a hint of suspicion that someone who wields power has put a thumb on the scale.

The Russia team was in my office. I took the call on an unclassified line. That was another strange thing—the president was calling on a phone that was not secure. The voice on the other end said, It’s Don Trump calling. I said, Hello, Mr. President, how are you? Apart from my surprise that he was calling at all, I was surprised that he referred to himself as “Don.”

The president said, I’m good. You know—boy, it’s incredible, it’s such a great thing, people are really happy about the fact that the director’s gone, and it’s just remarkable what people are saying. Have you seen that? Are you seeing that, too?

He went on: I received hundreds of messages from FBI people—how happy they are that I fired him. There are people saying things on the media, have you seen that? What’s it like there in the building?

This is what it was like: You could go to any floor and you would see small groups gathering in hallways, some people even crying. The overwhelming majority liked and admired Director Comey—his personal style, the integrity of his conduct. Now we were laboring under the same dank, gray shadow that had been creeping over Washington during the few months Donald Trump had been in office.

I didn’t feel like I could say any of that to the president on the phone. I’m not sure I would have wanted to say it to him in person, either—or that he would have cared. I told him that people here were very surprised, but that we were trying to get back to work.

The president said he thought most people in the FBI voted for him—he thought 80 percent. He asked me again, as he had in his office, if I knew that Comey had told him three times that he was not under investigation. Then he got to the reason for his call. He said, I really want to come over there. I want to come to the FBI. I want to show all my FBI people how much I love them, so I think maybe it would be good for me to come over and speak to everybody, like tomorrow or the next day.

That sounded to me like one of the worst possible things that could happen. He was the boss, and had every right to come, but I hoped the idea would dissipate on its own. He said, Why don’t you come down here and talk to me about that later?

After we agreed on a time to meet, the president began to talk about how upset he was that Comey had flown home on his government plane from Los Angeles—Comey had been giving a speech there when he learned he was fired. The president wanted to know how that had happened.

I told him that bureau lawyers had assured me there was no legal issue with Comey coming home on the plane. I decided that he should do so. The existing threat assessment indicated he was still at risk, so he needed a protection detail. Since the members of the protection detail would all be coming home, it made sense to bring everybody back on the same plane they had used to fly out there. It was coming back anyway. The president flew off the handle: That’s not right! I don’t approve of that! That’s wrong! He reiterated his point five or seven times.

I said, I’m sorry that you disagree, sir. But it was my decision, and that’s how I decided. The president said, I want you to look into that! I thought to myself: What am I going to look into? I just told you I made that decision.

The ranting against Comey spiraled. I waited until he had talked himself out.

Toward the end of the conversation, the president brought up the subject of my wife. Jill had run unsuccessfully for the Virginia state Senate back in 2015, and the president had said false and malicious things about her during his campaign in order to tarnish the FBI. He said, How is your wife? I said, She’s fine. He said, When she lost her election, that must have been very tough to lose. How did she handle losing? Is it tough to lose?

I replied, I guess it’s tough to lose anything. But she’s rededicated herself to her career and her job and taking care of kids in the emergency room. That’s what she does.

He replied in a tone that sounded like a sneer. He said, “Yeah, that must’ve been really tough. To lose. To be a loser.”

I wrote a memo about this conversation that very day. I wrote memos about my interactions with President Trump for the same reason that Comey did: to have a contemporaneous record of conversations with a person who cannot be trusted.

People do not appreciate how far we have fallen from normal standards of presidential accountability. Today we have a president who is willing not only to comment prejudicially on criminal prosecutions but to comment on ones that potentially affect him. He does both of these things almost daily. He is not just sounding a dog whistle. He is lobbying for a result. The president has stepped over bright ethical and moral lines wherever he has encountered them. Every day brings a new low, with the president exposing himself as a deliberate liar who will say whatever he pleases to get whatever he wants. If he were “on the box” at Quantico, he would break the machine.

After Comey’s firing, the core of my concern had to do with what might happen to the Russia case if I were to be removed. I convened a series of meetings about that investigation—including the one interrupted by the call from the president—in which I directed an overall review of every aspect. Was the work on solid ground? Were there individuals on whom we should consider opening new cases? I wanted to protect the Russia investigation in such a way that whoever came after me could not just make it go away.

As requested, I went back to the White House that afternoon. The scene was almost identical to the one I had walked into the previous night. Trump was behind the Resolute desk. He lifted one arm and jutted it out, fingers splayed, directing me to take a seat in one of the little wooden chairs in front of him. Reince Priebus, then the chief of staff, and Don McGahn, then the White House counsel, were in the other chairs.

The president launched back into his speech about what a great decision it was to fire Jim Comey, how wonderful it was that the director was gone, because so many people did not like Comey, even hated him—the president actually used the word hate.

Eventually he changed the subject. He said that he wanted to come to FBI headquarters to see people and excite them and show them how much he loves the FBI. He pressed me to answer whether I thought it was a good idea. I said it was always a good idea to visit. I was trying to take some of the immediacy out of his proposal—to communicate that the door was always open, so that he wouldn’t feel he had to crash through it right away. I knew what a disaster it could turn out to be if he came to the Hoover Building in the near future. He pressed further, asking specifically, Do you think it would be a good idea for me to come down now? I said, Sure.

He looked at Don McGahn. The president said, Don, what do you think? Do you think I should go down to the FBI and speak to the people?

McGahn was sitting in one of the wooden chairs to my right. Making eye contact with Trump, he said, in a very pat and very prepared way, If the acting director of the FBI is telling you he thinks it is a good idea for you to come visit the FBI, then you should do it.

Then McGahn turned and looked at me. And Trump looked at me and asked, Is that what you’re telling me? Do you think it is a good idea?

It was a bizarre performance. I said it would be fine. I had no real choice. This was not worth the ultimate sacrifice.

In this moment, I felt the way I’d felt in 1998, in a case involving the Russian Mafia, when I sent a man I’ll call Big Felix in to meet with a Mafia boss named Dimitri Gufield. The same kind of thing was happening here, in the Oval Office. Dimitri had wanted Felix to endorse his protection scheme. This is a dangerous business, and it’s a bad neighborhood, and you know, if you want, I can protect you from that. If you want my protection. I can protect you. Do you want my protection? The president and his men were trying to work me the way a criminal brigade would operate.

For whatever reason, the visit to the FBI never happened.

One of the regularly scheduled meetings with the attorney general, deputy attorney general, and some of their staff came two days later, on Friday, May 12. After the meeting, I asked the deputy, Rod Rosenstein, if he could stay behind. In part I wanted to talk with him about ground rules governing the separate investigations of the Russia case by the FBI and the Senate Intelligence Committee. Rosenstein had oversight because the attorney general, Jeff Sessions, had had to recuse himself owing to his own interactions with Russians during the campaign. But my main message was this: I need you to protect the process.

After speaking to these points, Rod shifted his gaze. His eyes were focused on a point in space a few yards beyond and behind, toward the door. He started talking about the firing of Jim Comey. He was obviously upset. He said he was shocked that the White House was making it look as if Jim’s firing had been his idea. He was grasping for a way to describe the nature of his situation. One remark stands out. He said, There’s no one that I can talk to about this. There’s no one here that I can trust.

He asked for my thoughts about whether we needed a special counsel to oversee the Russia case. I said I thought it would help the investigation’s credibility. Later that day, I went to see Rosenstein again. This is the gist of what I said: I feel strongly that the investigation would be best served by having a special counsel. I’ve been thinking about the Clinton email case and how we got twisted in knots over how to announce a result that did not include bringing charges against anyone. Had we appointed a special counsel in the Clinton case, we might not be in the present situation. Unless or until you make the decision to appoint a special counsel, the FBI will be subjected to withering criticism that could destroy the credibility of both the Justice Department and the FBI.

Rosenstein was very engaged. He was not yet convinced. I brought the matter up with him again after the weekend. On Wednesday, we would be briefing the Hill. As I saw it, by informing Congress of the bureau’s actions, we would be drawing an indelible line around the cases we had opened—the four cases known publicly and any others that may have gone forward. The four known publicly were those of Carter Page, a foreign-policy adviser to the Trump campaign and a man with many Russian ties; George Papadopoulos, another foreign-policy adviser, who had told a foreign diplomat that the Russians had offered to help Trump’s campaign by providing information on Hillary Clinton; Michael Flynn, for a brief period the president’s national security adviser, who had pursued multiple high-level contacts with the Russian government; and Paul Manafort, Trump’s campaign manager, who had shady business dealings with Ukrainians and Russians.

On the afternoon of May 17, Rosenstein and I sat at the end of a long conference table in a secure room in the basement of the Capitol. We were there to brief the so-called Gang of Eight—the majority and minority leaders of the House and Senate and the chairs and ranking members of the House and Senate Intelligence Committees. Rosenstein had, I knew, made a decision to appoint a special counsel in the Russia case. Chuck Schumer, the Democratic senator from New York, was to our right. Mitch McConnell, the Republican senator from Kentucky and the Senate majority leader, was to our left. The mood in the room was sober.

After reminding the committee of how the investigation began, I told them of additional steps we had taken. Then Rod took over and announced that he had appointed a special counsel to pursue the Russia investigation, and that the special counsel was Robert Mueller. The Gang of Eight had questions. What was the scope of the inquiry? Who would oversee the special counsel? How could the special counsel get fired? Rod answered every question. Then it was over.

When I came out of the Capitol, it felt like crossing a finish line. If I got nothing else done as acting director, I had done the one thing I needed to do.