Answer
The antibiotics bind to important enzymes of bacteria, blocking their active sites and, hence, preventing the enzyme action in bacteria. This has a harmful effect on bacteria, and the bacteria die. But since these antibiotics are very specific to enzymes of bacteria, they do not affect the human taking them.
Work Step by Step
Same as above.