An enzyme called transpeptidase catalyzes the nucleophilic carbonyl substitution process required for the cross-linking of the peptidoglycan in bacterial cell walls.
Antibiotics like penicillin primarily target it.
By attaching to the active site of the transpeptidase enzyme, penicillin prevents the enzyme from functioning, preventing the formation of the bacterial cell wall.