ABC News aired an hourlong interview on Sunday with James B. Comey, the F.B.I. director fired by President Trump last year. George Stephanopoulos, ABC’s chief anchor, interviewed Mr. Comey, who is promoting his new book, “A Higher Loyalty,” for five hours in all. ABC published a complete transcript of their conversation. Here are highlights and analysis from that transcript.

[Read our coverage of the interview and the feud between Mr. Comey and the president »]

oN president trump’s Leadership

‘He is morally unfit to be president.’

I don’t buy this stuff about him being mentally incompetent or early stages of dementia. He strikes me as a person of above average intelligence who’s tracking conversations and knows what’s going on. I don’t think he’s medically unfit to be president. I think he’s morally unfit to be president. A person who sees moral equivalence in Charlottesville, who talks about and treats women like they’re pieces of meat, who lies constantly about matters big and small and insists the American people believe it — that person’s not fit to be president of the United States, on moral grounds. And that’s not a policy statement. Again, I don’t care what your views are on guns or immigration or taxes. There’s something more important than that that should unite all of us, and that is our president must embody respect and adhere to the values that are at the core of this country. The most important being truth. This president is not able to do that. He is morally unfit to be president.

During much of the interview, Mr. Comey seems disciplined and almost dispassionate. But at the end, he lets loose in a remarkable way. It is hard to think of a time that such a senior official of the government has gone on to so directly question the moral fitness of the sitting president. He said that he hoped Mr. Trump would be held accountable for his lies, but that impeachment would be a cop-out for a public that should also be held accountable for electing Mr. Trump in the first place.

On Comparing the President to a Mob Boss

‘The loyalty oaths, the boss as the dominant center of everything.’

STEPHANOPOULOS: How strange is it for you to sit here and compare the president to a mob boss? COMEY: Very strange. And I don’t do it lightly. I — and I’m not trying to, by the way, suggest that President Trump is out breaking legs and — you know, shaking down shopkeepers. But instead, what I’m talking about is that leadership culture constantly comes back to me when I think about my experience with the Trump administration. The — the loyalty oaths, the boss as the dominant center of everything, it’s all about how do you serve the boss, what’s in the boss’s interests. It’s the family, the family, the family, the family. That’s why it reminds me so much and not, “So what’s the right thing for the country and what are the values of the institutions that we’re dealing with?”

The comparison to the mob is sure to be one of the more controversial takeaways of Mr. Comey’s new book. But it is one that Mr. Comey repeatedly defends in the interview.

On Meeting Trump at a White House Reception

‘How could he think this is a good idea?’

And so I’m walking forward thinking that, thinking: “How could he think this is a good idea? That he’s going to try to hug me, the guy that a whole lot of people think, although that’s not true, but think I tried to get him elected president and did. Isn’t he master of television? This is disastrous.”

One of the enduring images of Mr. Comey was captured by television cameras shortly after Mr. Trump became president and held a reception at the White House for law enforcement officials. Mr. Trump calls to Mr. Comey, who walks across a room to shake the president’s hand, and Mr. Trump appears to lean over and almost kiss his cheek.