WASHINGTON — This story was updated on Dec. 4, 2017. Read on for further explanation about obstruction of justice and how it relates to President Trump’s actions.

The testimony by the former F.B.I. director James B. Comey that President Trump, before firing him last month, demanded loyalty, urged him to drop the investigation into his former national security adviser and pressed him to “lift the cloud” of the Russia inquiry is fueling accusations that the president obstructed justice.

Mr. Comey’s prepared testimony, which the Senate Intelligence Committee released on Wednesday, corroborates prior reports by The New York Times about how Mr. Comey’s strained relationship with the president evolved, which had already prompted Democrats to raise the specter of the obstruction crime.

Moreover, Mr. Trump himself told NBC News last month that when he fired Mr. Comey, he had been thinking about the F.B.I.’s investigation into whether his associates coordinated with Russia in its interference in the 2016 election. The Times has reported that the day after the firing, Mr. Trump told Russian diplomats in the Oval Office that firing Mr. Comey had relieved “great pressure because of Russia.”