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

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 and 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” and said he would like to act “for the Cubans that came and were treated really badly, and they came to America.” When Mr. Hewitt asked whether he would accept a brief 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 and 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 prepared to keep the naval blockade in place and described the Iranian government as near 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 final 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,” while adding that deals could still be reached on issues such as drug pricing.

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

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

Asked about the race to succeed him in 2028, Mr. Trump said Republican primary debates should begin 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 he attributed to Mr. Hewitt: “President Trump was as good as he has ever been today. Still the best interview in the country.”