A new shape-shifting polymer can target and kill Helicobacter pylori bacteria in the stomach without killing helpful bacteria in the gut. Such a treatment could improve the digestive health of billions of people worldwide who contract H. pylori infections.