Penicillin inhibits the transpeptidase enzymes (also known as penicillin-binding proteins or PBPs) that cross-link the peptidoglycan chains, which are essential for the structural integrity of the bacterial cell wall. This weakens the wall, leading to cell lysis (bursting) due to osmotic pressure.