SEOUL, South Korea (AP) — President Barack Obama warned North Korea on Saturday that the United States "will not hesitate to use our military might" to defend allies, showcasing U.S. power in the region amid China's growing influence and Pyongyang's unpredictable nuclear threats.

Obama's visit to Seoul comes as North Korea has threatened to conduct its fourth nuclear test, leading Obama to raise the possibility of further sanctions.

"The commitment that the United States of America has made to the security of the Republic of Korea only grows stronger in the face of aggression," Obama said in a speech to some of the 28,000 American service members stationed in South Korea to keep watch on its northern neighbor. "Our alliance does not waiver with each bout of their attention seeking. It just gains the support of the rest of the world."

The website 38 North, which closely monitors North Korea, said commercial satellite imagery from Wednesday showed increased movement of vehicles and materials near what are believed to be the entrances to two completed tunnels at Punggye-ri nuclear test site. The movements could be preparations for an underground atomic explosion, although predicting underground tests is notoriously difficult.

Obama ridiculed North Korea's attempt to show force. "Anybody can make threats," he said. "Anyone can move an army. Anyone can show off a missile. That doesn't make you strong."

He said real strength comes from having an open participatory democracy, open markets and a society free to speak out against its government.

"We don't use our military might to impose these things on others, but we will not hesitate to use our military might to defend our allies and our way of life," Obama said to cheers from the uniformed troops who filled a field house at Yongsan Garrison, headquarters for U.S. forces in South Korea.

Obama's 10-minute speech followed a rare joint defense briefing with South Korean President Park Geun-hye that focused on efforts to counter the North's nuclear ambitions. U.S. Army Gen. Curtis Scaparrotti, the commander of the joint U.S.-South Korea command, told the two presidents that his team "works together every day to make sure that we defend the Republic of Korea and that we deter North Korea."

Story continues

Following his remarks, Obama was heading to Malaysia, the third stop on his four-country Asia swing. The mission of the trip was to underscore U.S. commitment to the region at a period of uncertainty between North Korea's provocations and China's growing power. While the U.S. has long been the most powerful military influence in the Asia-Pacific region, Pentagon spending is being slashed at the same time China has been boosting its defense budget.

Beijing still lags far behind the U.S. in both military funding and technology. But its spending boom is attracting new scrutiny at a time of severe cuts in U.S. defense budgets that have some questioning Washington's commitments to its Asian allies, including some who have lingering disputes with China.

At the same time, the U.S. military is seeking to redirect resources to the Asia-Pacific as it draws down its commitment in Afghanistan, though there is concern that budget cuts could threaten plans to base 60 percent of U.S. naval assets in the region. Chief of Naval Operations Adm. Jonathan Greenert recently warned that U.S. capabilities to project power "would not stay ahead" of potential adversaries, given the fiscal restraints.

Earlier Saturday, Obama promoted trade between the U.S. and South Korea with executives from businesses including Hyundai, Samsung, Korean Air, Microsoft, Boeing, Goldman Sachs and others. "As important as the security relationship is and the alliance is between the Republic of Korea and the United States, what is also important is the incredible and growing economic ties that are creating jobs and opportunity in both countries," Obama said.

While in Seoul, Obama has paid tribute to victims from last week's ferry disaster. The vast majority of the 300 dead or missing were students from a single high school near the capital city.

___

Associated Press writers Darlene Superville in Seoul and Matthew Pennington in Washington contributed to this report.

___

Follow Julie Pace at http://twitter.com/jpaceDC