Antibiotics are medicines that fight bacterial infections by exploiting differences between bacterial cells and your own cells. They work through a handful of strategies: breaking apart the bacterial cell wall, shutting down the machinery bacteria use to build proteins, or sabotaging their ability to copy DNA. Because these targets either don’t exist in human cells or look different enough from their human counterparts, antibiotics can wipe out an infection without doing much damage to you. The story is more interesting than that tidy summary suggests, though, and understanding what antibiotics actually do inside a bacterium helps explain why resistance is such a serious problem, why you get side effects, and why taking the wrong antibiotic can make things worse.
Where Antibiotics Came From
Before antibiotics, a scratch that got infected could kill you. Pneumonia, tuberculosis, and infected wounds were leading causes of death well into the twentieth century. That changed in 1928, when Alexander Fleming noticed that a mold growing on a petri dish was killing the bacteria around it. The active substance, which he named penicillin, turned out to be extraordinarily potent against a wide range of infections.1Asian Journal of Pharmaceutical Research. Penicillin and the Antibiotics Revolution Global History It took more than a decade for other scientists to figure out how to produce penicillin in large enough quantities for clinical use, but once they did, the effect on medicine was staggering. Surgeries that had been too risky became routine. Battlefield injuries that would have meant death became survivable. Penicillin launched an era of antibiotic discovery that gave us dozens of drug classes over the following decades.
Most of those early antibiotics came from nature. Soil bacteria and fungi had been waging chemical warfare against each other for millions of years, and researchers essentially borrowed their weapons. Streptomycin came from a soil bacterium. Tetracyclines came from another. Even today, many antibiotics in use are either natural products or lab-modified versions of molecules that microbes evolved to deploy against their competitors.
The Three Main Ways Antibiotics Attack Bacteria
Despite the variety of antibiotics available, almost all of them work by hitting one of three broad targets inside a bacterial cell. Each target represents a vital process the bacterium cannot survive without.
Destroying the Cell Wall
Bacteria are surrounded by a rigid structure called the cell wall, which keeps them from bursting under their own internal pressure. Human cells don’t have this wall, which makes it an ideal target. Penicillin and its relatives, known collectively as beta-lactams, attack the enzymes that build and maintain this wall. Research has shown that these drugs do more than just block wall construction: they actually cause the building machinery to malfunction, triggering a destructive cycle in which the cell simultaneously tries to build and tear apart its own wall, draining its resources and accelerating death.2PubMed Central. Beta-lactam antibiotics induce a lethal malfunctioning of the bacterial cell wall synthesis machinery This is why penicillin-type drugs are so effective: they don’t just stop the bacterium from growing, they actively push it toward self-destruction.
Blocking Protein Production
Every living cell needs to make proteins to survive, and bacteria do this using molecular machines called ribosomes. A large share of the antibiotics we use, by some estimates more than half of all antimicrobial medicines, target these bacterial ribosomes.3PubMed Central. Ribosome-Targeting Antibiotics: Modes of Action, Mechanisms of Resistance, and Implications for Drug Design Drugs like tetracyclines, macrolides (such as azithromycin), and aminoglycosides each jam the ribosome at a different step in the protein-assembly process. Some prevent the ribosome from reading the genetic instructions correctly. Others stop it from stitching amino acids together. The result is that the bacterium can no longer make the proteins it needs to grow, repair itself, or reproduce.
Interfering with DNA
Bacteria need to copy and manage their DNA to divide and respond to their environment. Fluoroquinolones, a widely prescribed class of antibiotics that includes ciprofloxacin, target enzymes called DNA gyrase and topoisomerase IV. These enzymes untangle and manage the coiling of bacterial DNA during replication. Quinolones lock onto these enzymes, trap them on the DNA strand, and generate breaks in the double helix that the cell cannot repair.4PubMed Central. Topoisomerase Inhibitors: Fluoroquinolone Mechanisms of Action and Resistance DNA gyrase is considered a primary target and is clinically relevant for treating various types of infections.5PubMed Central. DNA Gyrase as a Target for Quinolones Another group of antibiotics, the sulfonamides, takes a different angle: they block the production of folic acid, a vitamin that bacteria need to build DNA in the first place. Humans get folic acid from food, so this pathway is dispensable in our cells but essential in bacterial ones.6PubMed Central. Folic acid-sulfonamide conjugates as antibacterial agents: design, synthesis and molecular docking studies
Why Antibiotics Hurt Bacteria but Not You
This is one of the most elegant aspects of antibiotic design: selective toxicity. Antibiotics exploit molecular differences between bacterial cells and human cells. Your cells don’t have a cell wall, so penicillin has nothing to attack. Your ribosomes are structurally different from bacterial ribosomes, which is why drugs that jam bacterial protein production leave your cells alone. In some cases, the difference comes down to remarkably fine details. Studies of ribosome-targeting antibiotics have found that the selectivity between bacterial and human ribosomes can hinge on a single nucleotide or amino acid difference in the ribosome’s structure.7PubMed Central. Structural basis for selectivity and toxicity of ribosomal antibiotics
Selective toxicity is also why antibiotics don’t work against viruses. Viruses don’t have cell walls, ribosomes, or their own DNA-management enzymes in the way bacteria do. A virus hijacks your own cellular machinery to reproduce, and most antibiotics can’t target your machinery without harming you. When a doctor declines to prescribe an antibiotic for a cold or the flu, this is the reason: there is literally nothing for the drug to attack.
Killing Versus Slowing Down
Not all antibiotics do the same thing once they reach a bacterium. Some are bactericidal, meaning they actively kill bacterial cells. Others are bacteriostatic, meaning they stop bacteria from multiplying and leave it to your immune system to finish the job. The distinction matters more than it might seem. Research examining how these two types behave has found a fascinating difference at the cellular level: bacteriostatic drugs slow bacterial growth in a gradual, dose-dependent way, similar to what happens when bacteria are starved of nutrients. Bactericidal drugs, by contrast, don’t slow growth at all initially. Bacteria exposed to them keep growing at full speed until they hit an abrupt wall and collapse.8PubMed Central. Principles of bacteriostatic and bactericidal antibiotics at subinhibitory concentrations
In practice, for someone with a healthy immune system, the distinction often doesn’t affect the outcome. Your body can mop up bacteria that have been prevented from dividing. But if your immune system is compromised, a bactericidal drug may be preferred because you can’t rely on immune cells to clear the remaining bacteria.
Broad-Spectrum Versus Narrow-Spectrum
Antibiotics also vary in how many types of bacteria they can hit. Broad-spectrum antibiotics work against a wide range of bacterial species, while narrow-spectrum antibiotics target a smaller group. When a doctor suspects an infection but doesn’t yet know which bacterium is responsible, a broad-spectrum drug can cover more bases. But broader isn’t necessarily better. A study of children with acute respiratory tract infections found that broad-spectrum antibiotics offered no lower rate of treatment failure compared with narrow-spectrum ones, while the broad-spectrum group experienced more side effects reported by both clinicians and patients.9JAMA. Association of Broad- vs Narrow-Spectrum Antibiotics With Treatment Failure, Adverse Events, and Quality of Life in Children With Acute Respiratory Tract Infections Similarly, a separate study of childhood pneumonia found no significant difference in treatment outcomes between narrow- and broad-spectrum groups.10PubMed Central. Comparative analysis of the effectiveness of narrow-spectrum versus broad-spectrum antibiotics for the treatment of childhood pneumonia
The practical takeaway is that using a narrow-spectrum antibiotic when the infecting bacterium is known tends to cause fewer side effects and less collateral damage to the helpful bacteria in your body. This is where sensitivity testing comes in. Doctors can take a sample from the infection site (blood, urine, a wound swab, or a throat swab), grow the bacteria in a lab, and test which antibiotics are effective against them. That information guides the choice of the narrowest effective drug.
How Bacteria Become Resistant
Antibiotic resistance is one of the most serious threats to modern medicine, and bacteria have evolved several clever strategies to survive drugs that should kill them. Understanding these strategies helps explain why resistance spreads so quickly and why new antibiotics alone won’t solve the problem.
Destroying the Drug
Some bacteria produce enzymes that chemically dismantle the antibiotic before it can do any harm. The best-known example is beta-lactamase, an enzyme that breaks the core chemical ring of penicillin-type antibiotics, rendering them useless.11PubMed. Beta-lactamases and bacterial resistance to antibiotics These enzymes essentially treat the antibiotic as food, breaking it down rather than being disabled by it.12PubMed Central. β-Lactam antibiotic targets and resistance mechanisms: from covalent inhibitors to substrates To combat this, doctors sometimes pair a beta-lactam antibiotic with an inhibitor that blocks the enzyme, a strategy that has kept many older antibiotics useful.13PubMed Central. Tackling the Antibiotic Resistance Caused by Class A β-Lactamases through the Use of β-Lactamase Inhibitory Protein
Pumping the Drug Out
Other bacteria use molecular pumps embedded in their cell membranes to actively expel antibiotics before they reach their target. These efflux pumps can eject a wide range of structurally different drugs, which is why a single pump system can make a bacterium resistant to multiple antibiotic classes at once.14PubMed Central. Role of bacterial efflux pumps in antibiotic resistance, virulence, and strategies to discover novel efflux pump inhibitors In some bacteria, these pumps work in concert with the outer membrane, which acts as a physical barrier. Together, the pump and the barrier dramatically reduce the amount of antibiotic that accumulates inside the cell.15PubMed Central. Synergy between Active Efflux and Outer Membrane Diffusion Defines Rules of Antibiotic Permeation into Gram-Negative Bacteria
Changing the Target
If a bacterium can alter the structure of the molecule the antibiotic is designed to bind, the drug may no longer fit. This can happen through spontaneous mutations in the bacterium’s own genes, such as changes to DNA gyrase that block quinolones, or through genes acquired from other bacteria. The mecA gene that causes methicillin resistance in Staphylococcus aureus (MRSA) is a well-known example of acquired target modification.16PubMed. Bacterial resistance to antibiotics: modified target sites Bacteria can also use enzymes to chemically modify their own targets. For instance, some bacteria methylate their ribosomal RNA so that ribosome-targeting antibiotics can no longer latch on, while others alter their cell-envelope components to resist drugs like polymyxins.17PubMed. Antibiotic Resistance by Enzymatic Modification of Antibiotic Targets
What makes resistance especially dangerous is that these strategies are often carried on mobile genetic elements that bacteria share with each other, even across different species. A harmless soil bacterium can pass a resistance gene to a pathogen. And every time antibiotics are used, they apply selective pressure that favors the survival and spread of resistant strains.
What Antibiotics Do to Your Gut
Your digestive tract is home to trillions of bacteria that help you digest food, produce vitamins, train your immune system, and crowd out harmful microbes. Antibiotics, especially broad-spectrum ones, don’t discriminate well between the bacteria causing your infection and the beneficial communities in your gut.18PubMed Central. Antibiotic-induced gut microbiome dysbiosis: risks and strategies for mitigation
The most common result of this collateral damage is antibiotic-associated diarrhea. In more serious cases, wiping out the normal gut bacteria can allow harmful species like Clostridioides difficile to overgrow, causing severe inflammation of the colon. Early childhood is a particularly sensitive window: increased antibiotic exposure during this period has been linked to reduced diversity of gut microbial species, disrupted immunity, and the emergence of antibiotic-resistant microbes in the gut.19PubMed Central. Current understanding of antibiotic-associated dysbiosis and approaches for its management After a course of antibiotics, the decline in gut microbial diversity can persist for weeks to months, during which you may be more susceptible to opportunistic infections.20Medicine in Microecology. Antibiotics and the gut microbiome: Understanding the impact on human health
This is one of the most practical reasons to avoid taking antibiotics you don’t need. It’s also why some doctors recommend probiotics or fermented foods during or after a course of antibiotics, although the evidence for specific probiotic strains is still mixed.
Why Getting the Antibiotic to the Right Place Matters
Taking a pill is the easy part. For the antibiotic to work, it has to reach the site of infection at a high enough concentration to kill or stop the bacteria there. For most infections, that means the drug needs to travel through the bloodstream and diffuse into the fluid between cells at the infected organ or body cavity. A urinary tract infection is relatively straightforward because the antibiotic concentrates in the urine on its way out. A bone infection or abscess is much harder to treat because the drug has trouble penetrating those tissues at sufficient levels.
This is why the route of administration varies. Mild infections can often be handled with oral antibiotics. Severe or deep-seated infections may require intravenous delivery, which puts the drug directly into the bloodstream at higher concentrations. In some cases, doctors use both: starting with IV antibiotics in the hospital, then switching to oral once the infection is under control. How well a specific antibiotic penetrates the tissue where the infection lives is one of the key factors doctors weigh when choosing a drug.
Antibiotics in Agriculture and the Environment
Antibiotic resistance is not driven solely by human medicine. A substantial portion of the antibiotics produced globally is used in livestock, sometimes to treat infections but also to promote growth and prevent disease in crowded farming conditions. After being administered to animals, a large fraction of these antibiotics passes out of the animal body, either as the original compound or as active metabolites, and enters the environment through manure, runoff, and wastewater. The persistent presence of antibiotics in soil and water puts selective pressure on environmental bacteria, promoting the evolution and spread of resistance genes.21Environmental Health Insights. Antibiotic Use in Livestock and Environmental Antibiotic Resistance: A Narrative Review
Those resistance genes don’t stay on the farm. They move through water systems, food chains, and direct contact with animals. A resistance gene that evolves in a bacterium in an agricultural setting can eventually end up in a human pathogen. This is one reason many countries have moved to restrict the use of antibiotics in livestock for growth promotion, though enforcement varies widely around the world.
Alternatives on the Horizon
Given the pace at which bacteria develop resistance, researchers have been exploring alternatives to conventional antibiotics. One of the most promising is phage therapy, which uses viruses that naturally prey on bacteria. Unlike antibiotics, phages tend to be extremely specific, targeting one bacterial species or even one strain, which means they spare your gut microbiome. Research suggests that phage therapy has the potential to serve as either an alternative or a supplement to antibiotics, particularly against multidrug-resistant infections.22PubMed Central. Phage therapy: An alternative to antibiotics in the age of multi-drug resistance
Other approaches in various stages of development include antimicrobial peptides (short proteins that punch holes in bacterial membranes), lysins (enzymes derived from phages that chew through bacterial cell walls), and even CRISPR-based tools designed to target specific resistance genes.23PubMed. Alternatives to Conventional Antibiotics in the Era of Antimicrobial Resistance Some teams have gone further, engineering phages to express antimicrobial peptides, creating combination weapons. One such engineered phage showed stronger performance in both killing free-floating bacteria and destroying biofilms compared to the unmodified version.24The Microbe. Examining alternative approaches to antibiotic utilisation: A critical evaluation of phage therapy and antimicrobial peptides combination as potential alternatives
None of these alternatives has replaced antibiotics yet, and most face significant hurdles in manufacturing, regulation, and clinical testing. But they represent a genuine shift in thinking: instead of searching only for new chemical compounds that bacteria will eventually learn to resist, researchers are starting to borrow strategies from the biological arms race that bacteria have been fighting among themselves for billions of years.