Antibiotics work in a number of different ways. One is preventing bacteria from making normal cell walls. Penicillin works by inhibiting certain enzymes required for the synthesis and assembly of the peptide cross linkages (chemical bonds) in bacterial cell walls. This weakens the walls, making them unable to withstand pressure. As water enters by osmosis, the cell then bursts and the bacterium dies.