The UK has decided to let Huawei continue to be used in its 5G networks but with restrictions, despite pressure from the US to block the firm.
The Chinese firm will be banned from supplying kit to "sensitive parts" of the network, known as the core.
In addition, it will only be allowed to account for 35 percent of the kit in a network's periphery, which includes radio masts.
And it will be excluded from areas near military bases and nuclear sites.
US Secretary of State Mike Pompeo had previously suggested that use of Huawei's equipment posed a spying risk, saying that "we won't be able to share information" with nations that put it into their "critical information systems".
But the Foreign Secretary Dominic Raab has said the decision would not affect the UK's intelligence-sharing relationship with the US and other close allies.
"Nothing in this review affects this country's ability to share highly-sensitive intelligence data over highly-secure networks both within the UK and our partners, including the Five Eyes," the minister told the House of Commons.
A document published by the National Cyber Security Centre (NCSC) indicates that the UK's networks will have three years to comply with the caps on the use of Huawei's equipment.
"Huawei is reassured by the UK government's confirmation that we can continue working with our customers to keep the 5G rollout on track," the firm's UK chief Victor Zhang said in a statement.
"It gives the UK access to world-leading technology and ensures a competitive market."
'Strategic defeat'
The prime minister had faced pressure from the US and some Conservative MPs to block the Chinese tech giant on the grounds of national security.
A Trump administration official has said the US "is disappointed" with the decision.
Beijing had warned the UK there could be "substantial" repercussions to other trade and investment plans had the company been banned outright.
The choice has been described as the biggest test of Boris Johnson's post-Brexit strategy to date.
Senator Tom Cotton, a Republican member of the US Senate Intelligence Committee tweeted his dismay.
"I fear London has freed itself from Brussels only to cede sovereignty to Beijing," he posted.
Newt Gingrich, a former Speaker of the US House of Representatives, described it as a "strategic defeat" for his country.
Huawei has always denied that it would help the Chinese government attack one of its clients. The firm's founder has said he would "shut the company down" rather than aid "any spying activities".
Conservative MP Tom Tugendhat, former chair of the Foreign Affairs Select Committee, tweeted that the government's "statement leaves many concerns and does not close the UK's networks to a frequently malign international actor".
- BBC