Transpeptidation reinforces the structure of cell wall peptidoglycan, an extracellular heteropolymer that protects bacteria from osmotic lysis. The clinical success of transpeptidase-inhibiting β-lactam antibiotics illustrates the essentiality of these cross-linkages for cell wall integrity, but the presence of multiple, seemingly redundant transpeptidases in many bacterial species makes it challenging to determine cross-link function precisely. Here we present a technique to covalently link peptide strands by chemical rather than enzymatic reaction. We employ bio-compatible click chemistry to induce triazole formation between azido- and alkynyl-D-alanine residues that are metabolically installed in the cell walls of Gram-positive and Gram-negative bacteria. Synthetic triazole cross-links can be visualized by substituting azido-D-alanine with azidocoumarin-D-alanine, an amino acid derivative that undergoes fluorescent enhancement upon reaction with terminal alkynes. Cell wall stapling protects the model bacterium Escherichia coli from β-lactam treatment. Chemical control of cell wall structure in live bacteria can provide functional insights that are orthogonal to those obtained by genetics.<br>