There are different ways by which a bacterium becomes resistant to antibiotics. In one, the bacterium evolves and can recognise and eject the medicine out of its cell. In another, the bacterium produces an enzyme called β-lactamase, which hydrolyses the β-lactam ring – a key structural component of common antibiotics like penicillin and carbapenem – rendering the medication ineffective.