Seoul, South Korea (Reuters): American President Donald Trump's defense secretary warned North Korea on Friday of an "effective and overwhelming" response if Pyongyang chose to use nuclear weapons, as he reassured Seoul of steadfast U.S. support at the end of a two-day visit.

Defense Secretary Jim Mattis said at South Korea's defense ministry, "Any attack on the United States, or our allies, will be defeated, and any use of nuclear weapons would be met with a response that would be effective and overwhelming."

Mattis' remarks come amid concern that North Korea could be readying to test a new ballistic missile, in what could be an early challenge for Trump's administration.

North Korea, which regularly threatens to destroy South Korea and its main ally, the United States, conducted more than 20 missile tests last year, as well as two nuclear tests, in defiance of U.N. resolutions and sanctions.

The North also appears to have also restarted operation of a reactor at its main Yongbyon nuclear facility that produces plutonium that can be used for its nuclear weapons program, according to U.S. think tank 38 North.

Mattis said, "North Korea continues to launch missiles, develop its nuclear weapons program and engage in threatening rhetoric and behavior."

North Korea's actions have prompted the United States and South Korea to respond by bolstering defenses, including the expected deployment of a U.S. missile defense system, known as Terminal High Altitude Area Defense (THAAD), in South Korea later this year. The two sides reconfirmed that commitment on Friday.

China, however, has objected to THAAD, saying it will destabilize the regional security balance, leading to calls from some South Korean opposition leaders to delay or cancel it.

South Korean Defense Minister Han Min-koo said Mattis' visit to Seoul - his first trip abroad as defense secretary - sent a clear message of strong U.S. support.

Han said, "Faced with a current severe security situation, Secretary Mattis' visit to Korea ... also communicates the strongest warning to North Korea."

Once fully developed, a North Korean ICBM could threaten the continental United States, which is about 9,000 km (5,500 miles) from North Korea. ICBMs have a minimum range of about 5,500 km (3,400 miles), but some are designed to travel 10,000 km (6,200 miles) or more.

Former U.S. officials and other experts have said the United States essentially has two options when it comes to trying to curb North Korea's fast-expanding nuclear and missile programs - negotiate or take military action.

Neither path offers certain success and the military option is fraught with huge dangers, especially for Japan and South Korea, U.S. allies in close proximity to North Korea.

Mattis is scheduled to depart later on Friday for Japan.