Bacteria are complex living organisms that digest nutrients, divide and multiply. Antibiotics work by attacking these life processes. Viruses are much simpler and do not carry out life processes on their own. Because they are simpler, viruses do not have targets that antibiotics can attack. That is why antibiotics work against bacteria, but not against viruses.