LONDON – Prime Minister Boris Johnson ordered that Huawei equipment be purged completely from Britain’s 5G network by 2027, risking the ire of China by signaling that the world’s biggest telecoms equipment maker is no longer welcome in the West.

The seven-year lag will please British telecoms operators such as BT, Vodafone and Three, which had feared they would be forced to spend billions of pounds to rip out Huawei equipment much faster. But it will delay the roll out of 5G.

The United States had long pushed Johnson to reverse a decision he made in January to grant Huawei a limited role in 5G. London has also been dismayed by a crackdown in Hong Kong and the perception that China did not tell the whole truth over the coronavirus.

Britain’s National Security Council, chaired by Johnson, decided Tuesday to ban the purchase of 5G components from the end of this year and to order the removal of all existing Huawei gear from the 5G network by 2027.

The cyber arm of Britain’s GCHQ eavesdropping agency, the National Cyber Security Centre, told ministers it could no longer guarantee the stable supply of Huawei gear after the United States imposed new sanctions on chip technology.

Telecoms companies will also be told to stop using Huawei in fixed-line fiber broadband within the next two years.

“This has not been an easy decision, but it is the right one for the UK telecoms networks, for our national security and our economy, both now and indeed in the long run,” Oliver Dowden, Britain’s digital, culture, media and sport secretary, told Parliament.

“By the time of the next election, we will have implemented in law, an irreversible path for the complete removal of Huawei equipment from our 5G networks.”

In what some have compared to the Cold War antagonism with the Soviet Union, the United States is worried that 5G dominance is a milestone toward Chinese technological supremacy that could define the geopolitics of the 21st century.

With faster data and increased capacity, 5G will become the nervous system of the future economy — carrying data on everything from global financial flows to critical infrastructure such as energy, defense and transport.

After Australia first recognized the destructive power of 5G if hijacked by a hostile state, the West has become steadily more worried about Huawei. White House national security adviser Robert O’Brien is meeting representatives of France, the UK, Germany and Italy in Paris this week to discuss security, including 5G.

The West is trying to create a group of rivals to Huawei to build 5G networks. Other large-scale telecoms equipment suppliers are Sweden’s Ericsson and Finland’s Nokia.