New Delhi: US defence secretary Jim Mattis said Tuesday that the United States wants to resolve the standoff with North Korea diplomatically and is focused on ending Pyongyang’s nuclear weapons programme.

“We maintain the capability to deter North Korea’s most dangerous threats, but we also will back up our diplomats in a manner to keep this as long as possible in the diplomatic realm," Mattis told reporters in New Delhi, following talks with his Indian counterpart.

“Our goal is to solve this diplomatically," he said.

Mattis’ comments come amid escalating rhetoric between President Donald Trump and North Korean leader Kim Jong-un.

The Trump administration clarified Monday that it is not seeking to overthrow North Korea’s government after Trump tweeted over the weekend that Kim “won’t be around much longer". Pyongyang interpreted the tweet as a declaration of war.

Mattis arrived in New Delhi late on Monday, marking the first visit to India by a cabinet-level official from Trump’s administration.

In meetings with Prime Minister Narendra Modi and other officials, Mattis was expected to focus on deepening defence cooperation between the two countries and discuss how India could contribute to US efforts in Afghanistan.

The talks with defence minister Nirmala Sitharaman covered ways to enhance and complement efforts to restore security in Afghanistan as Washington steps up its own military campaign against Taliban insurgents.

Last month, while outlining his new strategy for Afghanistan, Trump urged India to assist security efforts in Afghanistan.

Sitharaman said India would continue its efforts to reconstruct Afghanistan’s infrastructure, but she ruled out sending Indian troops to the country.

So far, New Delhi has contributed around $3 billion toward building highways, power transmission lines and dams, as well as to aid public health and education in the war-ravaged country.

India will also enhance its efforts to train Afghan soldiers in counter-terrorism and help build its police forces, Sitharaman said.

The two defence ministers also discussed defence deals with India, one of the world’s biggest defence equipment buyers. The talks focused on deals that involve the transfer of technology, with India pressing Washington to share technology and wanting to manufacture its own fighter jets.

Mattis said the talks covered ways to further enhance defence trade and technology collaboration between defence industries.

“We look forward to sharing some of our most advanced defence technologies through the defence technology and trade initiative," he said, adding that this would improve the capabilities of both militaries.

Sitharaman said India appreciates US’ “willingness to share further cutting-edge platforms which would enhance India’s defence preparedness to meet current and emerging threats."

The two sides also discussed maritime security in the Indo-Pacific, amid shared concerns about an increasingly aggressive China. The US, India and Japan annually conduct naval exercises in the Bay of Bengal to improve coordination between their navies.