Antibiotics function by targeting specific bacterial structures or processes, such as cell wall synthesis, protein synthesis, nucleic acid synthesis, or metabolic pathways. For example, penicillin inhibits cell wall synthesis, whereas tetracyclines interfere with protein synthesis. By disrupting these vital processes, antibiotics can effectively eliminate bacterial pathogens.