The pledge was a potential new headache for the AI industry on a day when stock markets tumbled and major tech companies fell sharply.

Donald Trump said Friday that he plans to restrict U.S. companies from building data centers overseas — the latest instance of the president embracing the construction of massive tech facilities that a majority of Americans oppose.

Back in Washington after a trip to Asia, Trump said the restrictions were necessary to prevent AI infrastructure from leaving U.S. shores.

“We’re not going to allow our companies to build data centers outside of our country,” Trump told reporters in the White House briefing room.