According to the World Health Organization (WHO), 663 million people — one in ten — lack access to safe water. Fully one-third of the world’s population lacks plumbing enough to have access to a toilet—that’s more than 2.4 billion people.

A 2016 report found that water shortages affect two-thirds of the world’s population. Water shortages — and the conflicts they cause — will worsen as climate change ramps up. In fact, the 2015 World Economic Forum cited lack of access to clean water as the number one global risk in existence today.

Working to find a solution to these problems, researchers have developed a sunlight-powered device that can extract water from even the driest desert skies, in the hope that the technology may one day supply even the poorest, driest areas of the world with clean drinking water. The basis for the device is a type of novel, porous material called metal-organic frameworks that pulls large amounts of water into its pores. The research, published in Science, shows that a kilogram of the material can trap several liters of water per day, even in the standard 20 percent humidity levels of arid regions.

The material needs more refinement, but Evelyn Wang, head of MIT’s device research laboratory, told MIT Technology Review that a viable product is “not that far away.” Similar materials are already being affordably mass-produced by the German chemical company BASF. Hopefully, this device will be able to provide a stable source of clean water to millions.The chemical character and size of the material’s pores can be altered to either allow the flow or capture of different kinds of molecules.

The material is able to bond with huge quantities of particles thanks to its massive surface area, which is equivalent to about a football field per gram. The process is entirely passive and does not require additional energy or materials. Unlike other water-harvesting technologies, it can operate in arid conditions. It’s similar to a humidifier, but does not need an initial supply of water in order to operate.