Huawei was convicted by a New York jury on Tuesday on 10 of 12 criminal counts in a US case involving its Iran business and allegations that it stole trade secrets from American companies.

The jury in Brooklyn federal court found the Chinese telecommunications equipment maker guilty of bank fraud, wire fraud, sanctions violations and conspiring to steal trade secrets. It acquitted Huawei of conspiring to obstruct justice and racketeering conspiracy, which alleged that the company had acted as a criminal enterprise.

The case began in 2018. The following year, the US government placed Huawei on a trade blacklist, restricting its access to US technology amid American concerns that the company posed national security risks.

The trial lasted more than two months. Prosecutors called more than 60 witnesses, while the defense called 15. It was not immediately clear what penalties Huawei will face when US District Judge Ann Donnelly sentences the company on September 14, 2027.

Reuters stories in 2012 and 2013 helped expose Huawei’s activities in Iran and were discussed at trial. “After the media started questioning Huawei’s operations in Iran, so did Huawei’s banks,” prosecutor Meredith Arfa told jurors during closing arguments last week.

Huawei lawyer Brian Heberlig said the company was disappointed by the convictions, but that its acquittal on the racketeering conspiracy charge vindicated its “good-faith compliance culture.” He told reporters: “We fully expect to appeal.”

US Attorney Joseph Nocella said in a statement: “Few crimes are as serious as Huawei’s decades-long pattern of endangering US national security, violating the sanctity of US commerce, and impeding the enforcement of US laws.” China’s embassy in Washington did not immediately respond to a request for comment.

Asked about possible penalties, Heberlig said it was premature to comment, but added that the acquittal on the racketeering conspiracy charge could make a significant difference. Experts have said the case did not undermine Huawei’s business, as the company diversified and emerged as a key player in China’s push for artificial intelligence.

In December 2018, Meng Wanzhou, Huawei’s chief financial officer and daughter of the company’s founder, was detained in Canada on a US warrant, triggering a diplomatic crisis involving the United States, China and Canada.

Meng had been secretly indicted in the US on charges of misleading an HSBC banker about Huawei’s Iran business so the company could move dollars into and out of Iran in violation of American sanctions. She fought extradition for nearly three years before entering a deferred prosecution agreement and flying home to China to a hero’s welcome. The charges against her were dropped.

Meng did not testify at trial. An HSBC banker she met with in 2013 did.

The 2018 indictment alleged that Huawei misled HSBC, Standard Chartered and BNP Paribas about its business dealings in Iran. Prosecutors added charges in 2020, including allegations that Huawei conspired over two decades to steal trade secrets from US technology companies.

Prosecutors sought to show that Huawei stole source code from Cisco Systems for its routers, took wireless telecommunications company Quintel’s antenna technology, and hired a professor to gain access to a circuit board developed by semiconductor company CNEX.

Jurors watched a video that prosecutors said showed a Huawei employee slipping part of a T-Mobile testing robot into his backpack. They also heard that a Huawei engineer had sneaked into a Fujitsu booth at a trade show to photograph a device.

Prosecutors presented jurors with a statement attached to Meng’s deferred prosecution agreement in which she acknowledged that the company illegally conducted business in Iran.

The defense argued that HSBC and the other banks knew about Huawei’s Iran business and were competing for the company’s business. In closing arguments, Heberlig accused prosecutors of having “cherry-picked” a handful of disparate incidents to support their claim of a 20-year conspiracy. He said Huawei succeeded through “hard work, innovation, and investment in research and development.”

Huawei has more than 200,000 employees and operates in approximately 170 countries.