WASHINGTON - Rudy Giuliani said Monday that he provided President Donald Trump with detailed information this year about how the United States ambassador to Ukraine was, in Giuliani’s view, impeding investigations that could benefit Trump, setting in motion the ambassador’s recall from her post.

In an interview, Giuliani, the president’s personal lawyer, described how he passed along to Trump “a couple of times” accounts about how the ambassador, Marie L. Yovanovitch, had frustrated efforts that could be politically helpful to Trump. They included investigations involving former Vice President Joe Biden and Ukrainians who disseminated documents that damaged Trump’s 2016 campaign.

The president in turn connected Giuliani with Secretary of State Mike Pompeo, who asked for more information, Giuliani said. Within weeks, Yovanovitch was recalled as ambassador at the end of April and was told that Trump had lost trust in her.

The circumstances of Yovanovitch’s ouster after a smear campaign engineered in part by Giuliani were documented during testimony to the House Intelligence Committee, where she was a key witness in impeachment proceedings against Trump. Giuliani has made no secret of his role in flagging concerns about Yovanovitch to Trump.

But Giuliani’s account, in an interview with the New York Times on Monday evening, provided additional detail about the president’s knowledge of and involvement in one element of a pressure campaign against Ukraine.

Giuliani’s interview came as the House prepared for a vote Wednesday to impeach Trump. The articles of impeachment put forward by Democrats accuse the president of abusing the power of his office to push Ukraine to help him politically and of obstructing Congress by blocking testimony from key officials. Over several weeks of testimony, Democrats assembled a case that Trump withheld military aid from Ukraine and denied its president an Oval Office meeting as he sought a commitment from the Ukrainians for the investigations promoted by Giuliani.

In conversations in the first months of the year with the president, Giuliani, by his account, cast Yovanovitch as impeding not only investigations in Ukraine that could benefit Trump, but also Giuliani’s efforts to gather evidence to defend him — and target his rivals — in the United States.

“There’s a lot of reasons to move her,” Giuliani said, asserting that his briefings of Trump and Pompeo most likely played a role in their decision to recall Yovanovitch.

“I think my information did,” he said. “I don’t know. You’d have to ask them. But they relied on it.”

He added, “I just gave them the facts. I mean, did I think she should be recalled? I thought she should have been fired. If I was attorney general, I would have kicked her out. I mean — secretary of state.”

Testimony in the impeachment proceedings as well as other information have shown that Giuliani’s claims about Yovanovitch were either unsubstantiated or were taken out of context. In the interview, he portrayed himself as personally involved in the effort to derail a career diplomat around the time he was considering business arrangements with some of the Ukrainians funneling information to him.

Giuliani told the president and Pompeo that Yovanovitch was blocking visas for Ukrainian prosecutors to come to the United States to present evidence to him — and also to federal authorities — that he claimed could be damaging to Biden and his son Hunter Biden, and to Ukrainians who distributed documents that led to the resignation of Trump’s 2016 campaign chairman, Paul Manafort.

Giuliani also claimed, based on his own interviews with those prosecutors, that Yovanovitch had sought to block investigations in Ukraine. And he relayed vague claims that she had been bad-mouthing the president.

“I think I had pointed out to the president a couple of times, I reported to the president, what I had learned about the visa denials,” Giuliani said, as well as the claims that she ordered one Ukrainian prosecutor to drop cases. “I may or may not have passed along the general gossip that the embassy was considered to be a kind of out-of-control politically partisan embassy, but that was, like, general gossip, I didn’t report that as fact.”

Giuliani had told the New Yorker in an article published Monday that he needed Yovanovitch “out of the way,” and that she “was going to make the investigations difficult for everybody.”

Yovanovitch, a 33-year veteran of the Foreign Service, testified in the impeachment proceedings that Giuliani helped lead a smear campaign against her based on what she described as scurrilous lies, and she described the State Department as capitulating to the president’s demands to recall her.

There is no evidence that she had disparaged Trump, nor that she had issued a do-not-prosecute list, as one of Giuliani’s prosecutor sources once claimed.

But, by Giuliani’s account Monday, the information he was spreading about her seemed to find a receptive audience at the highest reaches of the U.S. government and led Trump to involve Pompeo.

Giuliani told the Times that after he briefed Trump on the claims, the president said “either ‘discuss it with Mike’ or ‘turn it over to Mike.’ ” Giuliani said he could not recall “if he had me call him, or him call me — but he put us together so that Pompeo could evaluate it.”

Giuliani’s account of the phone calls with Pompeo seems to be corroborated by e-mails released by the State Department to a liberal watchdog group that had filed a public records lawsuit. The e-mails reflect at least two telephone calls between the men in late March, including one that was arranged with guidance from Trump’s personal assistant.

Giuliani said that Pompeo asked him whether he had anything in writing, so Giuliani sent a timeline listing events related to some of the claims about Yovanovitch, the Bidens’ work in Ukraine and other matters.

Pompeo subsequently requested more detailed information, Giuliani said, so he had someone hand-deliver to Pompeo’s office an envelope containing a series of memos detailing claims made by a pair of Ukrainian prosecutors in interviews conducted by Giuliani and his associates in January. The existence of those memos has been previously reported, as has Giuliani’s hope that Pompeo would pass them along to State Department investigators and the FBI as a way of prompting an investigation in the United States that could benefit Trump.

“What I thought was, a really smart guy and he’s going to see what else is involved,” Giuliani said, referring to Pompeo. “And then he’ll be the one referring it to the FBI. And maybe they’ll take it from him and also it won’t look like I’m pushing the FBI to do it.”

One of the interviews detailed in a memo sent to Pompeo was conducted by phone with Viktor Shokin, a former Ukrainian prosecutor who was denied a visa by the State Department. He was denied the visa because he was seen as having wasted American assistance money that had been allocated to his office for anti-corruption programs, according to testimony in the impeachment inquiry.

Shokin “wanted to come to the United States to share information suggesting that there was corruption at the U.S. Embassy,” testified George P. Kent, a State Department official. “Knowing Mr. Shokin, I had full faith that it was bunch of hooey, and he was looking to basically engage in a con-game out of revenge because he’d lost his job.”

Another Ukrainian prosecutor, Yuriy Lutsenko, had traveled to New York to be interviewed by Giuliani for hours over two days in January, and information he relayed was included in memos sent to Pompeo.

Giuliani’s efforts in Ukraine have come under scrutiny from federal prosecutors examining whether he violated laws requiring Americans to publicly disclose when they lobby government officials or communicate with journalists on behalf of foreign political interests.

Yet Giuliani traveled to Europe this month, as first reported by The Times, to meet with some of those same Ukrainian prosecutors to continue gathering information to try to undercut the impeachment case, including through a series of programs on a conservative cable network.

Trump has said that Giuliani will submit a report of his findings to Attorney General William Barr and Congress.

Giuliani has shared some information gathered on the trip with Trump — but “not too much” — the president told reporters Monday. He added that Giuliani “knows what he is doing.”

Giuliani would not comment on any conversations with Trump about the report from his most recent trip. He said he has not spoken with Barr about it. He has spoken to “several” members of Congress about his findings, he said, but he would not identify them, explaining, “It’s all very confidential.”