They work by binding to the 50S ribosomal subunit, therefore hindering the aminoacyl-tRNA binding and inhibiting the peptidyltransferase reaction, which interferes with protein synthesis within the bacteria.