China produces the bulk of the world’s PPE. In January and February, as the coronavirus tore through Wuhan and the country went into lockdown, Chinese medical supply factories ramped up production, which was supplemented by an influx of donated supplies from the United States and Europe.

Then China went back to work and its government tried to jump-start the economy. With the virus spreading throughout the rest of the world, demand for medical equipment soared to the point that factory owners in the industry began boasting that they owned yinqianji: banknote-printing machines. As orders of cars, clothes, and other consumer goods dwindled, desperate manufacturers who specialized in these products switched their lines over to make masks, gloves, and gowns. Some of them had the clean rooms and know-how needed to make PPE. Others did not.

With demand exploding, full payment up front became the norm. Fraud and counterfeit products proliferated.In early April, the Chinese government rolled out measures intended to clamp down on counterfeit PPE, and it became even trickier to ship products out of China. Buyers panicked. “No one is thinking seriously these days,” says Renaud Anjoran, a manufacturing supply chain auditor based in Hong Kong. “People are wiring money into the personal account of a guy in an apartment playing middleman, for transfers of $2 million.”

Speculators abound. Aku Zhang, vice president for international sales with CMICS Medical Instrument Company in Shanghai, says that he is regularly approached by traders who want to pay cash for tens of millions of KN95 masks, a high-quality Chinese respirator. He assumes that the buyers are connected to governments but adds that he has no way to know for certain.

On the other end of the supply chain are hospitals and governments, whose purchasing teams are typically conservative in their decision-making and unused to dealing with complex supply-chain issues. Before the outbreak, they relied on medical distributors. Now, with distributors overtaxed, purchasing officers wake up every morning to emails from unfamiliar brokers. “We’re getting a different type of spam,” says Dan Rogan, who purchases supplies for jails, juvenile facilities, and first responders in Minnesota’s Hennepin County. Lily Liu, a cofounder of Operation Masks, says it’s understandable that purchasers are overwhelmed: “It’s as if you went from shopping in a grocery store to having to vet a cattle farm just in order to eat a steak.” In the United States, a lack of national leadership on sourcing has exacerbated the problem.

A cargo flight carrying over 6 million medical items including face masks, test kits, face shields, and protective suits from Guangzhou arrives in Addis Ababa on March 22. The supplies were were donated by the Jack Ma Foundation and Alibaba Foundation and will be distributed from Ethiopia to countries throughout Africa. AP PHOTO/MULUGETA AYENE

Tech companies, with their global workforces and capital to spare at a time when most other industries are contracting, are attempting to fill the gap. “We know how to build organizations, and we have the ability to build online platforms,” says Liu. (She previously cofounded Earn.com, a cryptocurrency startup that was acquired by Coinbase in 2018 for $120 million.)

The Chinese tech giants, in particular, have experience navigating complex and ever-evolving government regulations. They also need the image boost. Smartphone maker Xiaomi, which sells low-cost devices in the developing world, donated respirators to India and Italy. Tencent assisted New England Patriots owner Robert Kraft with an airlift of protective equipment that flew from Shenzhen to Boston on the NFL team’s 767.

In most cases, such donations have been arranged independent of the Chinese government, which is separately rewarding political allies with PPE. In March, China began sending goodwill airlifts of supplies and teams of experts to countries it considers friendly, including Pakistan, the Philippines, and Ukraine. When a Chinese medical team arrived in Serbia, President Aleksandar Vučić went so far as to kiss the Chinese flag. Even as American doctors pleaded for masks, and photos circulated on social media of nurses in New York wearing trash bags as protection, none of these government donations went to the United States. “That’s a sign — a country that’s rapidly becoming an epicenter of the pandemic and also has a desperate need for PPE actually is not receiving the donations of masks,” says Yanzhong Huang, a senior fellow for global health at the Council on Foreign Relations. An article published by state news agency Xinhua in early March warned that China could use export bans and “strategic control over medical products” to plunge the United States “into the mighty sea of coronavirus.”

But then Alibaba cofounder Jack Ma donated 500,000 coronavirus testing kits and a million masks to the United States. “All the best to our friends in America,” he tweeted. The shipment was received and distributed by the Centers for Disease Control and Prevention in Atlanta, according to the Alibaba Group. (The CDC did not respond to a request for comment.) The Alibaba and Jack Ma Foundations have also published a handbook for global health-care workers explaining how to treat patients with covid-19 and donated medical supplies throughout the world—including to 54 African countries. (Brian Wong, a vice president at Alibaba, is among the leaders of Operation Masks. A spokesperson for the foundations declined to comment on the shipments.)

For many Chinese tech companies, swooping in as the savior is shrewd publicity. “They have the funds and the political clout, and it’s good for their business mission,” says J. Norwell Coquillard, executive director of the Washington State China Relations Council, a Seattle-based lobbying group helping local health-care buyers vet suppliers of PPE.

In some cases the companies also have something to prove. Before the outbreak, Huawei was bidding to build 5G wireless networks throughout the world in the face of US efforts to thwart it. The company was waging a separate battle in Canada, where chief financial officer Meng Wanzhou is under house arrest in Vancouver, pending extradition to the United States on fraud charges. In early April, Huawei raised eyebrows when it quietly donated a large stock of masks and respirators to Canada. The Vancouver Sun reported that British Columbia received hundreds of thousands of masks and respirators. Huawei has also donated medical supplies to communities across the United States, as well as to various countries in Europe, and provided free or discounted AI-driven diagnostic technologies, intended to screen for covid-19, to Ecuador and the Philippines. Joy Tan, a senior vice president for Huawei in the United States, says that the firm wants to “use our technologies and solutions to help fight the crisis,” but would not comment on its donations of masks and other PPE or confirm how much the company has donated to specific countries.

At a moment when federal purchasing is in disarray, some think there’s room for American companies with a presence in China to chip in as well. “Trump has basically outsourced a lot of American policy to corporations,” says Coquillard. Companies that are active in China could now help the federal government procure massive orders, he adds: “I don’t see why he doesn’t just say, ‘Hey, guys, get it done!’”

Khan and Zhou, meanwhile, sometimes question their own sanity. Even with a nonprofit that supplies only to front-line workers, they routinely hear from shady brokers, some of whom appear to be connected to organized crime. They also run into logistics issues that don’t have an easy solution. They recently shipped a package to Australia that ended up in the Netherlands because of a mistake in a tracking number. “To be honest, it’s a bit scary,” says Khan. “We’re assuming the risk.”