Donald Trump said he will ban US companies from building AI data centres overseas and threatened a "tremendous tax" on tech firms that do so. "We're going to keep it all in this country," he said at a press briefing after returning from Asia.

Trump said the policy was needed because "China will take all of them, and we're not allowing that to happen." He gave few details. He said other members of his cabinet were hearing about the idea for the first time, and that he had not yet told his own staff.

Trump also said it was unclear whether the idea would become policy. It remains unclear how it would be enforced.

Tech giants including Meta and Google have agreements to build data centres overseas. Meta has broken ground on a data centre in Alberta, Canada. Google announced a €13bn ($15bn, £11bn) AI infrastructure investment in Finland in September, including three data centres. Building work on two of those centres was halted last month over concerns about clearing more than 300 hectares of forest. Trump said his administration was "not allowing that to happen" in Finland.

Trump's remarks follow a separate announcement from Washington on Monday. Firms will now need a licence to buy advanced computer chips, so US officials can monitor whether the chips serve Chinese companies or are smuggled into China. The BBC reported that the move will affect Southeast Asian countries that have invested heavily in data centres.

Data centres were a central issue in the US midterm elections in November, and many Democratic candidates promised tougher rules on their construction. Trump urged states and communities to "take advantage of the data centres," saying, "Make them pay you, make them pay your community, but take advantage don't shut them off."