Penicillins and cephalosporins function by irreversibly binding to penicillin-binding proteins.
Transpeptiases are one from of penicillin-binding protein that function to cross-link peptidoglycan in the bacterial cell wall.
Vancomycin binds to the terminal D-alanine residues of cell wall glycoproteins and prevents transpeptidases from cross-links.