China has accused the US of compromising the stability of the Asia-Pacific region after Donald Trump’s Defence Secretary confirmed Washington would back Japan if a conflict arose with Beijing over a number of disputed islands.

James ‘Mad-Dog’ Mattis, Mr Trump’s controversial pick for the sensitive post, caused a stir with his comments during a two-day visit to Japan where he held talks with Prime Minister Shinzo Abe.

The uninhabited islands in the East China Sea, surrounded by potentially lucrative natural gas deposits and abundant fishing grounds, are controlled by Japan but contested by China.

During his trip Mr Mattis claimed the Senkakus falls within the remit of the Japan-US security treaty, under which Washington is obliged to defend all areas under Tokyo’s administrative control.

The retired marine general, who served in Korea and Japan, said: “I want to make certain that Article 5 of our mutual defence treaty is understood to be as real to us today as it was a year ago, five years ago – and as it will be a year, and 10 years, from now.”

He stated that the US opposed any unilateral action which would undermine Japanese control of the islets, which China refers to as the Diaoyu islands.

Mr Mattis also reiterated the importance of free navigation in the strategic waterway.

But his comments angered Beijing, who released a statement calling on Washington to stop issuing “wrong information” and risk further complicating the delicate issue, bringing “instability to the regional situation”.

In a meeting with his Japanese counterpart, Tomoni Inada, Mr Mattis declared the two countries alliance was the “cornerstone” of regional stability.

He said: “I want there to be no misunderstanding during the transition in Washington that we stand firmly, 100% shoulder-to-shoulder with you and the Japanese people.”

The comments echoed his own statement made earlier in the week in Seoul, following a four-day visit to Japan and South Korea where, referencing North Korea, he said: “Right now we have to address the reality of the threat that your country and my country faces and we intend to be shoulder-to-shoulder with you as we face this together.”

The controversial orders Donald Trump has already issued Show all 9 1 /9 The controversial orders Donald Trump has already issued The controversial orders Donald Trump has already issued Trump and the media White House Press Secretary Sean Spicer takes questions during the daily press briefing Getty Images The controversial orders Donald Trump has already issued Trump and the Trans-Pacific Partnership Union leaders applaud US President Donald Trump for signing an executive order withdrawing the US from the Trans-Pacific Partnership negotiations during a meeting in the Roosevelt Room of the White House in Washington DC. Mr Trump issued a presidential memorandum in January announcing that the US would withdraw from the trade deal Getty The controversial orders Donald Trump has already issued Trump and the Mexico wall A US Border Patrol vehicle sits waiting for illegal immigrants at a fence opening near the US-Mexico border near McAllen, Texas. The number of incoming immigrants has surged ahead of the upcoming Presidential inauguration of Donald Trump, who has pledged to build a wall along the US-Mexico border. A signature campaign promise, Mr Trump outlined his intention to build a border wall on the US-Mexico border days after taking office Getty Images The controversial orders Donald Trump has already issued Trump and abortion US President Donald Trump signs an executive order as Chief of Staff Reince Priebus looks on in the Oval Office of the White House. Mr Trump reinstated a ban on American financial aide being granted to non-governmental organizations that provide abortion counseling, provide abortion referrals, or advocate for abortion access outside of the United States Getty Images The controversial orders Donald Trump has already issued Trump and the Dakota Access pipeline Opponents of the Keystone XL and Dakota Access pipelines hold a rally as they protest US President Donald Trump's executive orders advancing their construction, at Columbus Circle in New York. US President Donald Trump signed executive orders reviving the construction of two controversial oil pipelines, but said the projects would be subject to renegotiation Getty Images The controversial orders Donald Trump has already issued Trump and 'Obamacare' Nancy Pelosi who is the minority leader of the House of Representatives speaks beside House Democrats at an event to protect the Affordable Care Act in Los Angeles, California. US President Donald Trump's effort to make good on his campaign promise to repeal and replace the healthcare law failed when Republicans failed to get enough votes. Mr Trump has promised to revisit the matter Getty Images The controversial orders Donald Trump has already issued Donald Trump and 'sanctuary cities' US President Donald Trump signed an executive order in January threatening to pull funding for so-called "sanctuary cities" if they do not comply with federal immigration law AP The controversial orders Donald Trump has already issued Trump and the travel ban US President Donald Trump has attempted twice to restrict travel into the United States from several predominantly Muslim countries. The first attempt, in February, was met with swift opposition from protesters who flocked to airports around the country. That travel ban was later blocked by the Ninth Circuit Court of Appeals. The second ban was blocked by a federal judge a day before it was scheduled to be implemented in mid-March SANDY HUFFAKER/AFP/Getty Images The controversial orders Donald Trump has already issued Trump and climate change US President Donald Trump sought to dismantle several of his predecessor's actions on climate change in March. His order instructed the Environmental Protection Agency to reevaluate the Clean Power Plan, which would cap power plant emissions Shannon Stapleton/Reuters

Mr Mattis visited the region in his first trip abroad in his new role, widely viewed by many as offering reassurances to the US’ allies in the region.

He praised his host country, saying: “Japan has made noteworthy contributions to regional security and to the alliance, and the United States deeply appreciates Japan’s contributions.”

The Commander-in-Chief ruffled feathers during his presidential campaign, where he criticised Japan and South Korea’s commitment to their US alliance.

He hinted at withdrawing military backing unless more funds were pumped into the costs of housing American soldiers, of which there are roughly 28,500 in South Korea and 47,000 in Japan.

Mr Mattis’ trip appeared to allay fears, stating he saw “no need” for US military intervention in the South China Sea.

But Mr Trump has signalled a fresh direction in foreign policy towards China, who he has accused of inventing climate change and manipulating its currency to profit its own interests.

In his earlier visit to South Korea Mr Mattis announced a missile defence system, known as terminal high-altitude area defence (Thaad), would be deployed in the country later this year in a bid to combat the growing threat from Pyongyang.

This was heavily criticised by China, who accused it of altering the power balance in the region.

Chinese foreign ministry spokesman, Lu Kang, said: “We have resolute opposition to the deployment of Thaad to South Korea by the US and ROK [South Korea].