The chief financial officer of Chinese telecoms giant Huawei has been granted bail by a Canadian court.
Meng Wanzhou was arrested on 1 December and could be extradited to the US to face fraud charges linked to the alleged violation of sanctions on Iran.
A judge in Vancouver set bail at C$10m (£6m; $7.4m). She will be under surveillance 24 hours a day and must wear an electronic ankle tag.
US President Donald Trump now says he is willing to intervene in the case.
Ms Meng, 46, is the daughter of Huawei's founder and her detention has angered China and soured its relations with both Canada and the US.
This comes against the background of an increasingly acrimonious trade dispute between Washington and Beijing.
Ms Meng is accused in the US of using a Huawei subsidiary called Skycom to evade sanctions on Iran between 2009 and 2014.
President Trump told Reuters news agency that he could intervene in the US Justice Department's case against Ms Meng in order to avoid further deterioration in relations with China.
"Whatever's good for this country, I would do," said Mr Trump.
"If I think it's good for what will be certainly the largest trade deal ever made - which is a very important thing - what's good for national security, I would certainly intervene if I thought it was necessary."
At the three-day bail hearing in Vancouver, her lawyers sought to provide guarantees that she would not pose a flight risk if released. The application was opposed by Canadian prosecutors.
US prosecutors say Ms Meng had publicly misrepresented Skycom as being a separate company from Huawei in order to avoid sanctions on Iran. It is also alleged she deceived banks about the true relationship between the two companies.
Ms Meng has denied any wrongdoing and said she will contest the allegations.
Image: Applause broke out in the courtroom when Justice William Ehrcke granted bail. Ms Meng cried and hugged her lawyers.
The judge ordered her to reappear in court on 6 February.
After the ruling, Huawei issued a statement, saying: "We have every confidence that the Canadian and US legal systems will reach a just conclusion."
Image: Supporters of Meng Wanzhou gathered outside the court in Vancouver
China had threatened severe consequences unless Canada released the Huawei executive.
Earlier on Tuesday it emerged that a Canadian former diplomat had been detained in China.
Michael Kovrig's current employer, the International Crisis Group, said it was working for his prompt release. There has been no official word from China about his whereabouts.
Prime Minister Justin Trudeau said Canada was in direct contact with Chinese authorities concerning the case.
Mr Kovrig previously worked as a diplomat in Beijing, Hong Kong and at the UN in New York.
Canadian officials said there was no "explicit indication" of any link between Mr Kovrig's reported detention and the arrest of Ms Meng.
Have your say
More Technology Headlines
- How to install an Android app you can’t find in the Play Store
- Facebook may let you turn off obnoxious in-app notification badges
- How to post to multiple social networks
- Mobile industry records over 2,000 fibre cuts in H1 2019
- Huawei announces three new phones amid continued uncertainty
- Apple recalls older 15-inch MacBook Pros because the batteries could catch fire
- Companies without data protection certificates risk losing license
- Inlaks to launch “thehatch” Innovation Lab with a Hackathon
- Homemade plane built by South African teens makes historic flight
- Facebook unveils plans for its own cryptocurrency
- Huawei smartphone sales hit amid US curbs
- Huawei delays launch of foldable Mate X, blames Samsung not Trump
- 2 KNUST female students convert old playing device into diagnostic equipment
- Instagram will leave deepfake video of Mark Zuckerberg
- Samsung patent shows rollable phone displays