The structural integrity of bacterial cell wall depends on the cross linking of UDP-MurNAc and N-acetyl glucosamine. Penicillin and other β-lactam antibiotics act as an analogue of D-alanine-D-alanine (the dipeptide) in UDP-MurNAc owing to conformational similarities. The DD-transpeptidase then binds the four-membered β-lactam ring of penicillin instead of UDP-MurNAc. As a consequence, DD-transpeptidase is inactivated, the formation of cross-links between UDP-MurNAc and N-acetyl glucosamine is blocked so that an imbalance between cell wall production and degradation develops, causing the cell to rapidly die.The enzymes that hydrolyze the peptidoglycan cross-links continue to function, even while those that form such cross-links do not. This weakens the cell wall of the bacterium, and osmotic pressure becomes increasingly uncompensated—eventually causing cell death (cytolysis). In addition, the build-up of peptidoglycan precursors triggers the activation of bacterial cell wall hydrolases and autolysins, which further digest the cell walls peptidoglycans. The small size of the penicillins increases their potency, by allowing them to penetrate the entire depth of the cell wall. This is in contrast to the glycopeptide antibiotics vancomycin and teicoplanin, which are both much larger than the penicillins.Gram-positive bacteria are called protoplasts when they lose their cell walls. Gram-negative bacteria do not lose their cell walls completely and are called spheroplasts after treatment with penicillin.Penicillin shows a synergistic effect with aminoglycosides, since the inhibition of peptidoglycan synthesis allows aminoglycosides to penetrate the bacterial cell wall more easily, allowing their disruption of bacterial protein synthesis within the cell.
For example, resistance to vancomycin in S. aureus is due to additional peptidoglycan synthesis that makes the cell wall much thicker preventing effective penicillin entry. Resistance in Gram-negative bacteria is due to mutational variations in the structure and number of porins. In bacteria like Pseudomonas aeruginosa, there is reduced number of porins; whereas in bacteria like Enterobacter species, Escherichia coli and Klebsiella pneumoniae, there are modified porins such as non-specific porins (such as OmpC and OmpF groups) that cannot transport penicillin.Resistance due to PBP alterations is highly varied. A common case is found in Streptococcus pneumoniae where there is mutation in the gene for PBP, and the mutant PBPs have decreased binding affinity for penicillins. There are six mutant PBPs in S. pneumoniae, of which PBP1a, PBP2b, PBP2x and sometimes PBP2a are responsible for reduced binding affinity. S. aureus can activate a hidden gene that produces a different PBP, PBD2, which has low binding affinity for penicillins. There is a different strain of S. aureus named methicillin-resistant S. aureus (MRSA) which is resistant not only to penicllin and other β-lactams, but also to most antibiotics. The bacterial strain developed after introduction of methicillin in 1959. In MRSA, mutations in the genes (mec system) for PBP produce a variant protein called PBP2a (also termed PBP2), while making four normal PBPs. PBP2a has poor binding affinity for penicillin and also lacks glycosyltransferase activity required for complete peptidoglycan synthesis (which is carried out by the four normal PBPs).