Nine-residue peptide self-assembles in the presence of silver to produce a self-healing, cytocompatible, antimicrobial hydrogel.