U.S. President Donald Trump said on Tuesday he would intervene with the U.S. Justice Department in the case against a Chinese telecommunications executive if it would help secure a trade deal with Beijing.

"If I think it's good for the country, if I think it's good for what will be certainly the largest trade deal ever made — which is a very important thing — what's good for national security — I would certainly intervene if I thought it was necessary," Trump said in a wide-ranging interview with Reuters in the Oval Office.

Trump expressed optimism that he could strike a trade deal with Chinese President Xi Jinping as the two countries struggle to resolve a dispute that has contributed to recent U.S. stock market declines and raised questions about whether economic turmoil could beset the president in the new year.