Chloramphenicol functions by inhibiting bacterial protein synthesis. It binds to the 50S subunit of the bacterial ribosome, blocking the peptidyl transferase activity, which is crucial for protein chain elongation. This mechanism is effective but can also affect human mitochondrial ribosomes, leading to potential toxicity.