President Donald Trump has said the United States will penalise American companies that build data centres in other countries, threatening them with a "tremendous tax" in a move aimed at keeping the artificial intelligence boom — and its computing power — on American soil.

"We're not going to allow our companies to build data centers outside of our country," Mr. Trump told reporters at a White House news conference on Friday, held a day after he returned from a three-day trip to Asia that included meetings with China's President Xi Jinping. "We're not allowing data centers to go into other countries because China will take all of them, and we're not allowing that to happen."

The AI race behind the threat

Data centres are the physical backbone of the AI boom, providing the computing power needed to train and run increasingly complex systems. The world's biggest technology companies — including Amazon, Google, Microsoft and OpenAI — are spending billions of dollars building them overseas, drawn by cheaper land, labour and electricity and by permitting battles that have slowed construction in the United States.

Alphabet, Google's parent company, announced earlier this month that it would invest $15 billion in data-centre infrastructure in Malaysia in 2027 and 2028. Mr. Trump argued that whoever leads in AI — which he calls "super intelligence" — will lead in the future.

How far can he go?

It is not clear how the administration could penalise companies for building abroad. Only Congress can impose a tax, and Mr. Trump did not explain what legal mechanism he would use.

The warning fits a broader American effort to keep advanced computing out of China's reach. On Monday, the Commerce Department moved to restrict exports of advanced AI chips to several Southeast Asian countries. The United States already bars direct sales of its most advanced AI chips to China, but Chinese companies have continued to access them by renting computing capacity at data centres in countries that can legally import the chips.

Pressure at home, too

Data centres have also become a political flashpoint at home, drawing opposition from communities concerned about electricity demand and utility bills. Mr. Trump urged communities to welcome the facilities instead — and to negotiate hard. "You ought to take advantage of data centers," he said. "Make them pay. Make them pay your communities, but don't shut them off."

The Senate approved legislation on November 19 to ease the approval of data centres as part of a broader overhaul of permitting rules; the bill now heads to the House.

The president also used the nearly 90-minute news conference to tease a new agreement with China on international rules for AI. "President Xi and I agree that we're going to do some joint guardrails," he said, adding that the United States is leading the race and China is in second place: "There really is no third place."