Chemoprophylaxis works by administering drugs that inhibit the replication or function of the pathogen. For example:
Antibiotics like penicillin can prevent bacterial infections by targeting bacterial cell walls. Antiviral drugs such as oseltamivir can prevent the influenza virus from spreading within the host. Antimalarial drugs like chloroquine can prevent malaria by interfering with the life cycle of the parasite.