President Trump called Nvidia Chief Executive Jensen Huang on Tuesday, urging him to continue fighting for his position as a spy scandal intensified, according to two people briefed on the conversation. The call marked the latest instance of Mr. Trump publicly and privately defending Mr. Huang, who had become a significant ally and adviser on artificial intelligence.

Mr. Huang stepped down as CEO on Thursday, with Nvidia announcing his replacement after revelations surfaced detailing his alleged affair with a woman believed to be a Chinese spy, as well as another affair with an Nvidia employee. Mr. Huang built Nvidia into the world's leading supplier of advanced AI chips, a role central to the president's vision for American technological supremacy over China.

Intelligence agencies had concluded that Mr. Huang was involved with a Chinese national identified as Alice Huang, whom they assessed had been recruited by China's Ministry of State Security. President Trump had been alerted to this relationship at least twice, late last year and again in the spring, but took no action and even brought Mr. Huang on a trip to China in May. He has recently praised Mr. Huang on social media, calling him a "legend."

Advisers to the president indicated that Mr. Trump appeared unconcerned about the national security implications of the intelligence assessments. One aide suggested that Mr. Trump viewed the situation primarily as a matter of adultery, dismissing the notion that Mr. Huang's entanglement posed a threat to the country. A representative for Mr. Huang declined to comment, and neither the White House nor Mr. Trump responded to requests for comment.

Those close to the president explained his steadfast support for Mr. Huang by pointing to his belief that Nvidia was "too big to fail." They noted that the company's substantial market capitalization and its critical role in the global economy were significant factors. Mr. Trump reportedly saw Mr. Huang as akin to a modern Henry Ford, leading in a transformative technology.

Furthermore, Mr. Trump's administration had tied Nvidia's success to the broader health of the U.S. economy and stock market. When reports emerged that Nvidia's board was considering removing Mr. Huang, the president expressed concern to confidants about potential market downturns, indicating his worry that the CEO's ouster could trigger a significant economic slump.

This episode highlights the complex interplay between national security concerns, economic interests, and the president's personal relationships with influential business leaders. The administration's approach to the intelligence warnings regarding Mr. Huang underscores a pattern of prioritizing economic and strategic technological goals, even when faced with potential foreign influence risks.

Questions remain regarding the full extent of the intelligence community's findings and how these revelations might impact Nvidia's future leadership and its strategic importance. The company's board has now appointed an interim chief executive, initiating a search for a permanent successor amidst the ongoing fallout.