For many years, engineers have sought to create a special kind of surface: one that can both repel and absorb liquids, and whose ability to do so—its “wetting behaviour”—can be quickly and precisely controlled. The technology would have a wide range of potential applications, from water filtration and biomedical devices to liquid optical lenses and lab-on-a-chip systems.