Introduction
The modern pharmacy shelf can feel overwhelming. Antibiotics appear under dozens of names, like amoxicillin, azithromycin, doxycycline, cephalexin, metronidazole, each with its own story, its own target, and its own rules of use. To the untrained eye, they may all seem interchangeable. In reality, they are carefully grouped into classes that reflect how they work, what bacteria they can defeat, and when they are most appropriate. Classification matters because it makes sense of complexity.
This article provides a guided tour through the main antibiotic classes. We will describe their mechanisms, spectra, and clinical niches, then bring everything together in a comparative table. For readers who want to go deeper into condition-specific guidance, see Indications by condition, and for age-based dosing rules, Dosing adults and Dosing children. Along the way, we’ll highlight key individual drugs such as Amoxicillin, Azithromycin, and Doxycycline.
Penicillins
That’s where the history of modern antibiotics begins. When Alexander Fleming observed a mold contaminating his Petri dish in 1928, he noticed that surrounding bacteria had been destroyed. The substance released by the mold Penicillium notatum became the world’s first true antibiotic: penicillin.
Penicillins work by disrupting bacterial cell wall synthesis. Bacteria must constantly build and repair their walls to withstand the osmotic pressure inside the cell. Without a functioning wall, they burst and die. Human cells have no such wall, which is why the drugs can target bacteria without harming us.
The penicillin family has expanded far beyond Fleming’s original discovery. Today it includes simple penicillin V (still used for strep throat), semi-synthetic derivatives like amoxicillin, and combinations such as Amoxicillin-clavulanate, which are fortified with a “beta-lactamase inhibitor” to overcome bacterial resistance enzymes.
Spectrum of activity
Penicillins are particularly effective against Gram-positive organisms like Streptococcus and Enterococcus. Depending on the derivative, they may also cover some Gram-negative bacteria such as Haemophilus influenzae.
Typical indications
- Strep throat and tonsillitis
- Otitis media (middle ear infection)
- Community-acquired pneumonia (mild cases)
- Urinary tract infections (selected cases)
- Syphilis and other treponemal infections
- Dental abscesses
Amoxicillin remains one of the most prescribed antibiotics worldwide. For cases where resistance is suspected or proven, amoxicillin is often paired with clavulanic acid.
Despite their age, penicillins are far from obsolete. They remain first-line treatments for common community infections, especially in children, and their long safety record makes them a cornerstone of modern prescribing.
Cephalosporins
Cephalosporins are close relatives of penicillins. They share the same beta-lactam ring structure and the same mechanism of action: blocking bacterial cell wall synthesis. Yet they were developed to broaden the spectrum of coverage and reduce the problem of resistance.
These drugs are grouped into “generations,” each representing a stage of development with different bacterial targets:
- First-generation cephalosporins (e.g., Cephalexin) focus mainly on Gram-positive bacteria like Streptococcus and Staphylococcus. They are widely used for skin and soft tissue infections.
- Second-generation cephalosporins expand coverage modestly into Gram-negative organisms.
- Third-generation cephalosporins (such as ceftriaxone) mark a turning point, with strong Gram-negative coverage and the ability to penetrate the central nervous system, making them effective in bacterial meningitis.
- Fourth-generation cephalosporins add stability against resistant strains, including Pseudomonas aeruginosa.
- Fifth-generation cephalosporins are rare but remarkable: they include drugs that can fight methicillin-resistant Staphylococcus aureus (MRSA).
Spectrum of activity
The cephalosporin family stretches from primarily Gram-positive coverage in its early generations to potent Gram-negative activity in later ones. This makes them versatile hospital workhorses.
Typical indications
- Skin and soft tissue infections (especially with first-generation drugs like Cephalexin)
- Urinary tract infections
- Community- and hospital-acquired pneumonia
- Gonorrhea (ceftriaxone remains the mainstay therapy)
- Bacterial meningitis (using third-generation drugs like cefotaxime or ceftriaxone)
- Surgical prophylaxis (often first-generation cephalosporins to prevent post-operative infections)
Cephalosporins are generally well tolerated and considered safe for children, though dosing requires careful adjustment (see Dosing children). They are also used extensively in adults, both in outpatient and inpatient care, and their versatility across infections makes them one of the most prescribed antibiotic families worldwide.
Macrolides
Macrolides emerged as an alternative for patients allergic to penicillin, but they have since carved out a broader role. Their mechanism is entirely different: they bind to bacterial ribosomes, blocking protein synthesis. Without the ability to manufacture essential proteins, bacteria cannot grow or reproduce.
One of the most widely recognized macrolides is Azithromycin. Unlike older members of the class, such as erythromycin, azithromycin has a long half-life, which allows for once-daily dosing and shorter treatment courses – an enormous advantage for patient adherence. Clarithromycin is another important macrolide with added activity against certain respiratory pathogens.
Spectrum of activity
Macrolides are particularly strong against Gram-positive bacteria, but their defining feature is coverage of atypical organisms like Mycoplasma pneumoniae, Chlamydophila pneumoniae, and Legionella. These “atypical” bacteria lack typical cell wall structures, making beta-lactam antibiotics (penicillins, cephalosporins) ineffective against them.
Typical indications
- Community-acquired pneumonia (especially when atypical pathogens are suspected)
- Whooping cough (Bordetella pertussis)
- Chlamydial infections (including sexually transmitted chlamydia)
- Traveler’s diarrhea in certain regions
- Pharyngitis and tonsillitis in penicillin-allergic patients
- Certain skin and soft tissue infections
Because of their safety and ease of dosing, macrolides are often chosen for children as well, though dosing adjustments are essential (see Dosing children).
Macrolides also play a unique role in chronic conditions. Low-dose azithromycin is sometimes used in patients with chronic obstructive pulmonary disease (COPD) to reduce flare-ups, not because of infection but because of its anti-inflammatory properties. This dual role sets macrolides apart from many other antibiotic classes. While generally well tolerated, they are not without risks. Gastrointestinal upset is common, and some macrolides can prolong the QT interval on an electrocardiogram, which may predispose to arrhythmias. Still, their broad utility and safety profile keep them among the most frequently prescribed antibiotic classes worldwide.
Tetracyclines
Discovered in the 1940s, tetracyclines quickly became known as broad-spectrum antibiotics. Like macrolides, they target the bacterial ribosome, but they attach at a different site, blocking protein synthesis in a distinct way. Their ability to act against a wide variety of organisms, including some that resist other classes, has kept them clinically relevant for decades. The best-known member today is Doxycycline, prized for its oral availability, long half-life, and broad utility. Minocycline and the older tetracycline are also in use, though less commonly.
Spectrum of activity
Tetracyclines cover Gram-positive and Gram-negative bacteria, as well as atypical pathogens. They also inhibit certain protozoa. Their versatility extends into dermatology, infectious diseases, and even tropical medicine.
Typical indications
- Acne and rosacea (long-term, low-dose doxycycline is a mainstay in dermatology)
- Respiratory infections caused by atypicals (Mycoplasma, Chlamydophila, Legionella)
- Tick-borne diseases, including Lyme disease, Rocky Mountain spotted fever, ehrlichiosis, and anaplasmosis
- Sexually transmitted infections, such as chlamydia
- Malaria prophylaxis in travelers to endemic regions
- Certain zoonotic infections like brucellosis and leptospirosis
Special considerations
Tetracyclines bind to calcium, which can affect teeth and bones. For this reason, they are usually avoided in children under 8 years and in pregnant women. They may also cause photosensitivity, leading to exaggerated sunburn reactions. Patients taking doxycycline are routinely advised to use sun protection.
Despite these cautions, tetracyclines remain indispensable tools in infectious disease medicine, particularly in regions where vector-borne illnesses are common. Doxycycline is the most versatile and widely prescribed member of the class, and it is often recommended in international guidelines for first-line therapy in conditions ranging from community-acquired pneumonia to uncomplicated chlamydia.
Fluoroquinolones
Fluoroquinolones are fully synthetic antibiotics. Their target is bacterial DNA: they inhibit enzymes such as DNA gyrase and topoisomerase IV, which are essential for replication. Blocking these processes effectively stops bacterial multiplication.
Spectrum of activity
They are strong against Gram-negative organisms (like E. coli and Pseudomonas aeruginosa) and have some Gram-positive and atypical coverage.
Typical indications
- Complicated urinary tract infections and prostatitis
- Gastrointestinal infections, including traveler’s diarrhea
- Certain pneumonias (particularly with levofloxacin or moxifloxacin)
Once considered first-line for many infections, fluoroquinolones are now prescribed more cautiously. The reason is safety: these drugs have been linked to tendon ruptures, neuropathy, and even psychiatric side effects. Regulatory agencies advise reserving them for situations where safer alternatives are unsuitable. Despite these risks, fluoroquinolones remain essential in hospital practice, especially against resistant Gram-negative bacteria.
Sulfonamides and trimethoprim
Sulfonamides were among the earliest antibiotics, introduced even before penicillin became widely available. They act by interfering with folic acid synthesis, an essential metabolic pathway for bacteria. Humans do not synthesize folic acid but obtain it from diet, which explains the selective toxicity. Trimethoprim, developed later, blocks a different step in the same pathway. Combined, they deliver a powerful one-two punch. The most common preparation today is trimethoprim-sulfamethoxazole, also known as co-trimoxazole.
Spectrum of activity
Broad, covering many Gram-positive and Gram-negative organisms, though resistance has become widespread in some regions.
Typical indications
- Urinary tract infections
- Skin and soft tissue infections, particularly those caused by community-acquired MRSA
- Pneumocystis pneumonia (Pneumocystis jirovecii), especially in immunocompromised patients
- Certain gastrointestinal infections
While effective, sulfonamides carry notable risks. They can cause allergic skin reactions, blood disorders, and interactions with other drugs such as warfarin. Careful patient selection and monitoring are therefore essential. Still, trimethoprim-sulfamethoxazole remains irreplaceable for specific infections, especially Pneumocystis pneumonia, where it is the first-line therapy.
Nitroimidazoles
Nitroimidazoles are a distinct group of antibiotics that work through DNA disruption. Once inside the microorganism, these drugs are metabolized into reactive compounds that break apart DNA strands, leading to cell death.
The most famous representative is Metronidazole, still one of the most widely prescribed antibiotics worldwide.
Spectrum of activity
Nitroimidazoles are active against anaerobic bacteria (those that thrive without oxygen) and certain protozoa. This makes them unique among antibiotics, since few other classes target both bacteria and parasites.
Typical indications
- Bacterial vaginosis and trichomoniasis
- Intra-abdominal infections, often in combination with other drugs to cover both aerobic and anaerobic bacteria
- Dental infections with anaerobic involvement
- Clostridioides difficile colitis (where metronidazole is used in selected cases, though vancomycin or fidaxomicin are now more common first-line options)
Because of its versatility, metronidazole appears on the World Health Organization’s List of Essential Medicines. It is inexpensive, effective, and relatively safe, though it carries the well-known warning of an unpleasant reaction if combined with alcohol.
Nitrofurans
Nitrofurans are a small but important antibiotic group. Their best-known member is Nitrofurantoin, a mainstay in the treatment of uncomplicated urinary tract infections.
Unlike broader classes, nitrofurantoin works through multiple mechanisms inside bacterial cells, generating reactive intermediates that damage DNA, proteins, and metabolic enzymes. Because of this multifaceted attack, resistance develops relatively slowly compared to some other antibiotics.
Spectrum of activity
Narrow, primarily targeting common urinary pathogens such as Escherichia coli and Enterococcus faecalis.
Typical indications
- Acute cystitis (bladder infection) in otherwise healthy adults
- Prophylaxis against recurrent urinary tract infections in selected patients
Nitrofurantoin’s effectiveness is linked to its pharmacology: it is concentrated in the urine but achieves very low blood levels. This makes it unsuitable for kidney infections (pyelonephritis) or systemic illness, but highly effective for bladder-level infections. It is generally well tolerated, though prolonged use may rarely cause lung or liver toxicity. For most patients with simple UTIs, however, it remains one of the safest and most reliable options.
Other notable classes
A few antibiotic groups are not prescribed as often, but are indispensable in hospitals in combating resistant infections:
- Glycopeptides (e.g., vancomycin): the gold standard for serious Gram-positive infections, including MRSA and enterococcal infections.
- Lincosamides (e.g., clindamycin): valuable for anaerobic infections and as an alternative in penicillin-allergic patients.
- Oxazolidinones (e.g., linezolid): used for multi-resistant Gram-positive bacteria when few other options remain.
These classes illustrate how antibiotic development has continued to evolve, filling gaps left by older drugs.