New mechanism discovered for fighting bacteria