Antibiotics act on prokaryotic cells by targeting and blocking essential cellular processes, such as cell wall synthesis (e.g., penicillin) and DNA replication or protein synthesis. This selectively kills or inhibits the growth of the bacteria without harming eukaryotic host cells.