President Donald J. Trump said on Thursday that he wants to resolve the situation in Cuba before he leaves office. He also said he would not hesitate to use military force against Iran if the conflict turned against the United States. He spoke in a long interview on “The Hugh Hewitt Show.”

Mr. Hewitt asked whether he would order military force to free Cuba before the end of his term. The president answered, “Well, I want to get Cuba done before I leave, yeah. And we have a very good, talented guy for Cuba named Marco.” He noted that the parents of Secretary of State Marco Rubio are from Cuba. He said Mr. Rubio “would love to do that.”

Mr. Trump called Cuba “essentially a failed, you know, place, nation, whatever you want to call it.” He said he would like to act “for the Cubans that came and were treated really badly, and they came to America.” Mr. Hewitt asked whether he would accept a short military campaign. The president said, “I would certainly consider that, yes.”

On Iran, Mr. Hewitt asked whether the president would hesitate to use force to stop Tehran from threatening American allies and shipping. “No. No hesitation. We’re doing very well with it,” Mr. Trump replied. He said the United States controls the Strait of Hormuz. He added, “if I saw things going the other way, I would do that. And it’s possible I would do it right now.”

The president said he is ready to keep the naval blockade in place. He described the Iranian government as close to collapse. “They are not doing well,” he said, adding, “Their economy is gone. They’re not paying their soldiers. Their military is wiped out. Their navy is gone. Their air force is gone.”

Looking ahead to the last two years of his term, Mr. Trump said, “I think it’s been a great presidency, and I think we’re going to do fine in the next two years.” He called the veto “a very powerful power” and said, “I intend to use it a lot.” He added that deals could still be made on issues such as drug prices.

He also pointed to new investment in American manufacturing. He cited plans by Audi and Toyota to build plants, which he valued at $4 billion and $5 billion. He also cited more ammunition production. “There’s never been anything like what’s happening in our country right now,” he said.

The president again called on the Senate to pass the $350 billion military reconciliation bill he pushed on Truth Social earlier in the day. “We’re in the midst of winning a war,” he said.

Asked about the race to replace him in 2028, Mr. Trump said Republican primary debates should start in about a year. “We have some very good people on the bench. We really do. We have some very good candidates,” he said.

Later on Thursday, the president shared on Truth Social a note that he said came from Mr. Hewitt: “President Trump was as good as he has ever been today. Still the best interview in the country.”