Donald Trump made it clear that he was willing to use the power of the federal government to reinstate the tech boss.

Despite Pentagon officials claiming that reinstating Mr Huang was essential to national security, the Nvidia board did not perceive a new chief executive as a threat, sources said.

Mr Hegseth has enmeshed Silicon Valley with the defence department since he assumed command.

After Mr Huang resigned, technology circles debated methods to redeem him, including using the DPA.

Balaji Srinivasan, a cryptocurrency investor, posted on social media last week about potential national security risks and first touted invoking the DPA to restore Mr Huang.

Mr Hegseth brought in Steve Feinberg, a billionaire who co-founded the private equity firm Cerberus Capital Management, as his number two and Emil Michael, a former Uber executive, as the military’s chief technology officer. Both men were involved in discussions about invoking the DPA, sources said.

It remains unclear whether the idea of using it was conveyed to the Nvidia directors before Mr Trump dialled into their board meeting on Sunday night and claimed he had helped “convince” them to reappoint Mr Huang.

The US president was steadfast that the only way to stabilise the financial markets after stocks were dragged down for weeks was to bring the chief executive back.

When the board reinstated Mr Huang on Monday, Nvidia soared more than 30 per cent.