Researchers have synthesized a bio-inspired polymer for water purification. The polymer was designed to mimic phytochelatin, a plant protein that selectively captures and neutralizes harmful heavy metal ions. The hyperconfinement of the polymer enabled a flow-through system and effectively removed cadmium ions from contaminated water, making it safe to drink. The system was selective for heavy metals and provides a new way to remove specific contaminants from water.