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
- UK MPs call for tax on social media companies
- Ghana’s mobile industry celebrates World Consumer Rights Day 2019
- WhatsApp co-founder urges users to delete their Facebook accounts — again
- AirPods, other wireless headphones could pose cancer risk, scientists warn
- Facebook says it removed 1.5 million videos of the New Zealand mosque attack
- Here’s how to batch delete old Facebook posts from your timeline
- WhatsApp set to introduce web browser with an important security feature
- Facebook loses chief product officer and Whatsapp head
- There are secret emojis hidden in WhatsApp – here’s how to find them
- Facebook suffers the most severe outage in its history
- How to reply privately in a WhatsApp group chat
- US 'warns Germany to drop Huawei'
- Happy Birthday, Internet: The World Wide Web turns 30
- Facebook’s new privacy mantra an ‘excuse to dodge responsibility’ says MP
- Security holes found in big brand car alarms