Anti-Infective Medicines: Classes and Uses
A practical guide to the major antibacterial, antiviral, and antifungal medicine classes, their typical uses, and why treatment must fit the organism and the individual infection.
Start with the Organism—and the Specific Case
Start with the Organism—and the Specific Case
Choosing an anti-infective begins with identifying the likely cause: bacteria, viruses, or fungi. Antibiotics target bacteria, antivirals target particular viruses, and antifungals target fungi. The medicine’s class is a useful starting point, but it does not by itself show that a particular drug will work for a particular infection.
A practical way to reason about the choice is to identify the likely organism, consider a class used for that organism and infection, and then check whether the specific medicine fits the case. That check can depend on test results and susceptibility or resistance patterns, where the infection is and how severe it is, allergies, interactions, other patient factors, and local guidance.
For example, antibiotics do not treat viral illnesses such as the common cold. More generally, unnecessary or mismatched treatment can cause harm and contribute to drug resistance. These principles help explain why class names are not a substitute for case-specific treatment decisions.
Antibacterial Medicines
Antibacterial Medicines
Antibiotics treat selected bacterial infections by killing bacteria or stopping their growth. They do not treat viral illnesses such as the common cold. The table gives examples of classes and some of their uses; the specific drug and likely organism matter.
| Class | Examples | Selected uses |
|---|---|---|
| Penicillins (beta-lactams) | Amoxicillin, penicillin V, dicloxacillin | Selected streptococcal infections; some respiratory or ear infections; dicloxacillin for susceptible staphylococcal infections |
| Cephalosporins (beta-lactams) | Cephalexin, cefuroxime, ceftriaxone | Selected skin, respiratory, urinary, or serious bacterial infections, depending on the drug |
| Macrolides | Azithromycin, clarithromycin | Selected respiratory or atypical bacterial infections; azithromycin also for some chlamydial infections |
| Tetracyclines | Doxycycline | Selected tick-borne, atypical respiratory, and skin infections, among other uses |
| Sulfonamide combination | Trimethoprim-sulfamethoxazole | Some urinary and skin infections when the likely organism is susceptible |
| Fluoroquinolones | Ciprofloxacin, levofloxacin | Selected infections, including some urinary or respiratory infections; organism and safety considerations matter |
| Glycopeptides | Vancomycin | Serious infections caused by certain gram-positive bacteria, including some resistant strains |
| Carbapenems (beta-lactams) | Meropenem | Selected severe or resistant infections, usually in healthcare settings |
Penicillins, cephalosporins, and carbapenems are all beta-lactams. Their shared mechanism is interference with bacterial cell-wall formation. This shared class feature does not mean every beta-lactam treats the same bacteria: for instance, cephalosporins vary in their spectrum, so the class name alone cannot establish whether a drug fits an infection.
The examples are not a prescribing guide. Some sinus and ear infections do not require antibiotics, and treatment depends on the suspected or identified bacteria and the specific case.
Antiviral Medicines
Antiviral Medicines
Antivirals act against particular viruses or stages of viral replication; there is no single antiviral that treats every viral infection. Some are used to treat or prevent selected infections, and some work best when started early. The examples below show why the virus matters when identifying an antiviral option.
| Group | Examples | Selected uses |
|---|---|---|
| Influenza neuraminidase inhibitors | Oseltamivir, zanamivir, peramivir | Influenza A and B |
| Influenza polymerase inhibitor | Baloxavir | Influenza A and B |
| Herpesvirus nucleoside analogues | Acyclovir, valacyclovir | Herpes simplex; appropriate drugs in this group are also used for shingles caused by varicella-zoster virus |
| HIV antiretrovirals | Reverse-transcriptase inhibitors, including NRTIs; integrase inhibitors; protease inhibitors | Combined medicines target different steps in viral replication for ongoing HIV control |
| COVID-19 antivirals | Nirmatrelvir with ritonavir; remdesivir | COVID-19 in eligible patients; selection depends on clinical factors and treatment timing |
HIV treatment illustrates a different pattern from treatment of a short-course illness: combinations of antiretroviral medicines target different steps in viral replication for ongoing control. Influenza antivirals are virus-specific and are not interchangeable with medicines used for COVID-19. COVID-19 antiviral selection also depends on clinical factors and treatment timing.
Antifungal Medicines
Antifungal Medicines
Antifungals treat fungal infections ranging from localized skin or yeast infections to serious infections affecting internal organs. They may be topical, oral, or intravenous. The infection’s site and severity, as well as the fungus, affect which drug and route are appropriate.
| Class | Examples | Selected uses |
|---|---|---|
| Azoles | Clotrimazole, miconazole, fluconazole, itraconazole | Topical azoles for some skin or vaginal yeast infections; selected oral azoles for candidiasis and other fungal infections |
| Allylamines | Terbinafine | Dermatophyte infections such as athlete’s foot, ringworm, and some nail infections |
| Polyenes | Nystatin, amphotericin B | Nystatin for some localized Candida infections; amphotericin B for selected serious, invasive fungal infections |
| Echinocandins | Micafungin, caspofungin | Selected invasive Candida infections, commonly in hospital care |
These classes are not interchangeable. For example, a cream used for a localized skin infection is not a substitute for treatment of invasive fungal disease. Some serious fungal infections need prolonged therapy and specialist-guided treatment.