It's tempting to think of antibiotic resistance as a story about a drug failing — bacteria somehow figuring out how to survive a treatment that should have worked. The more accurate picture is grimmer and simpler: an antibiotic can work exactly as intended, killing the overwhelming majority of a bacterial population, and still create resistance, because the tiny fraction of bacteria that happened to survive weren't random. They were resistant for a specific genetic reason, and killing off all their competitors is precisely what lets them take over.
Resistance usually already exists before the drug is ever given
Within any large bacterial population, random mutation constantly generates genetic variation, and purely by chance, a small number of individual bacteria may already carry mutations that happen to confer resistance to a particular antibiotic, long before that antibiotic is ever introduced. Bacteria can also acquire resistance genes directly from other bacteria through horizontal gene transfer, spreading a useful resistance trait across a population (and even across different species) far faster than mutation alone would allow. Either way, resistance typically isn't something an antibiotic teaches bacteria to develop in response to treatment — it's usually already present, at low frequency, before treatment even begins.
Selection does the rest, brutally efficiently
When an antibiotic is applied, it kills the vast majority of the population that lacks the resistance trait, but the resistant minority survives. With their non-resistant competitors gone and resources (space, nutrients) suddenly abundant, the resistant survivors reproduce with little competition, and the population that regrows is now disproportionately resistant compared to where it started. Repeat this cycle — treatment, selective survival of the resistant few, unchecked regrowth — across enough bacterial generations, doses, and patients, and a resistance trait that started as a rare curiosity in the population can become the dominant, expected outcome, which is exactly the mechanism behind the antibiotic resistance crisis genuinely straining modern medicine.
What we're still unsure about
The basic evolutionary mechanism behind antibiotic resistance — pre-existing variation plus strong selective pressure — is thoroughly established microbiology, not in scientific dispute. What remains genuinely difficult is predicting and countering resistance in practice: exactly how quickly a given bacterial species will develop resistance to a new drug, which combination or rotation strategies most effectively slow that process, and how to responsibly balance individual patient treatment against the population-level risk of accelerating resistance are all questions researchers and clinicians are still actively working through, without a single settled formula that works across every drug and pathogen.
This sits inside Antimicrobial Agents & Resistance, one of seven topics in Microbiology, one of six domains in Biology, one of seventeen subjects the app can quiz you on.