A desalination membrane acts as a filter for salty water: Push the water through the membrane, get clean water suitable for agriculture, energy production and even drinking. The process seems simple enough, but it contains complex intricacies that have baffled scientists for decades – until now.