House Speaker Paul Ryan vigorously defended the role of NATO and the importance of the United States leading the creation of free-trade agreements on Tuesday, breaking from positions taken by Republican presidential nominee Donald Trump.

Ryan, speaking at a luncheon in Wisconsin, called NATO an "indispensable ally" that he wanted to bolster to help fight terrorism. Trump caused alarm in the White House, overseas and among fellow Republicans last week when he suggested the United States might abandon its NATO military commitments if he were elected president.

Ryan doesn't see it that way, saying there's no question "in my mind" that NATO has a role to play in fighting terrorism.

"NATO is as important now as I would say it's been in my lifetime," he said at the event organized by the political website Wispolitics.com. Ryan said he wanted not to weaken NATO, but instead bolster its eastern front as a way to fight terrorism and defend American allies.

Ryan has been tepid in his support of Trump, not publicly endorsing him until June after disagreeing with him on comments he made questioning a judge's ability to be fair because of his Mexican heritage and opposing his plan to ban Muslims from entering the country. But Ryan has also argued that Trump is a better choice than Democrat Hillary Clinton because the House Republican agenda has a better chance of passing with him as president.

"It's much, much easier and better for us to work with a Trump-Pence administration than a Clinton administration," Ryan said Tuesday.

In another break from Trump, Ryan spoke of the need for the U.S. to be a leader in crafting free trade agreements. Trump has made his opposition to trade agreements the centerpiece of his economic argument. Trump wants to revoke the North American Free Trade Agreement and do away with the Obama administration-negotiated Trans Pacific Partnership.

But Ryan said free trade deals are needed for the health of the U.S. economy, as well as a tool to counter terrorism by forming relations with foreign countries, breaking down barriers and getting people to work together.

"He does say he's for good trade agreements," Ryan said of Trump. "I'm for good trade agreements as well. We agree on that. We don't want bad trade agreements, we want good trade agreements."

Ryan said he has withheld his support of the TPP deal because he said the Obama administration "screwed up in negotiating it." Ryan said he's talked with Obama and trade representatives about the issues he and other Republican opponents want to see addressed, but his not optimistic a new version can win congressional approval.

"I don't see the votes there for it," Ryan said.

Ryan's appearance at the luncheon came as Democrats were preparing to start the second day of their national convention in Philadelphia. Ryan chaired the Republican National Convention in Cleveland last week.

Ryan said he hoped the presidential election would be a battle over ideas, but he feared that it would not.

"What I worry about is a personality contest of Hillary fighting Donald, and it's a big personality contest and we don't actually litigate the issues," Ryan said.

___

Follow Scott Bauer on Twitter at http://twitter.com/sbauerAP and find more of his work at http://bigstory.ap.org/content/scott-bauer