Antimicrobial drugs function by targeting specific structures or processes in pathogens. For example, antibiotics might inhibit cell wall synthesis in bacteria, whereas antivirals may block viral replication. The mode of action depends on the type of microorganism and the specific drug used.