TORONTO (AP) — Wireless carriers in Canada won’t be allowed to install Huawei equipment in their high-speed 5G networks, the Canadian government said Thursday, joining allies in banning the giant Chinese technology company.

Canada had been the only member of the Five Eyes intelligence-pooling alliance not to bar or restrict use of equipment from Huawei Technologies Co. Ltd. in its 5G networks. The U.S. and the other members — Britain, Australia and New Zealand — previously banned Huawei.

“We are announcing our intention to prohibit the inclusion of Huawei and ZTE products and services in Canada’s telecommunications systems,” Industry Minister François-Philippe Champagne said.

Canada’s ban also includes ZTE Corp., one of China’s biggest tech companies and one that is state-owned.

Champagne added that “providers who already have this equipment installed will be required to cease its use and remove it.” He said Canada’s wireless companies won’t be offered compensation.

Canada’s major wireless companies already had started working with other providers.

Also read | Oklahoma lawmakers approve the strictest abortion ban in the US

“There are many hostile actors who are ready to exploit vulnerabilities in our defenses,” Public Safety Minister Marco Mendicino said.

Mendicino said the government did an extensive review and is redoubling efforts to protect Canadians.

The U.S. government has been lobbying allies like Canada for years to exclude Huawei from new ultra-fast 5G mobile networks over worries that China’s communist rulers could compel the company to help with cyberespionage. The U.S. has warned it would reconsider intelligence sharing with any countries that use Huawei gear.

Also read | Buffalo supermarket shooter indicted by grand jury, called ‘coward’

The company has repeatedly denied the allegations. A spokesman for Huawei said he would refrain comment until he sees what the government is actually doing.

The development of 5G, or fifth-generation, networks will give people speedier online connections and provide vast data capacity to meet ravenous demand as more and more things link to the internet and innovations such as virtual reality, immersive gaming and autonomous vehicles emerge.

Huawei is the biggest global supplier of network gear for phone and internet companies. It has been a symbol of China’s progress in becoming a technological world power — and a subject of U.S. security and law enforcement concerns. Some analysts say Chinese companies have flouted international rules and norms and stolen technology.

Also read | CDC advisors urge Pfizer COVID-19 booster for children aged 5 to 11

China, the U.S. and Canada completed what was effectively a high-stakes prisoner swap last year involving a top executive from Huawei who had been charged with fraud by the U.S.

China jailed two Canadians shortly after Canada arrested Meng Wanzhou, Huawei Technologies’ chief financial officer and the daughter of the company’s founder, on a U.S. extradition request. They were sent back to Canada in September, the same day Meng returned to China after reaching a deal with U.S. authorities in her case.

Many countries labeled China’s action “hostage politics,” while China has described the charges against Huawei and Meng as a politically motivated attempt to hold back China’s economic and technological development.

“The decision should have been taken two or three years ago, but it’s a case of better late than never,” Guy Saint-Jacques, a former Canadian ambassador to China, said of the move to ban Huawei. “We are faced with a China that is a lot more aggressive in the conduct of its foreign policy but also in the way it obtains information to achieve its goals.”

Saint-Jacques said that under Chinese law no company can refuse a request from the Chinese government to share information, so it would have been impossible to allow Huawei’s participation.

He expects China to retaliate.

“I expect we will hear from them pretty rapidly,” he said. “They use trade as a weapon and I suspect that’s what we’ll see in this case.”