Interfere with the last step of bacterial cell wall synthesis (transpeptidation or cross-linkage), resulting in exposure of the osmotically less stable membrane. Cell lysis can then occur, either through osmotic pressure or through the activation of autolysins.