When was it discovered that bacteria and viruses can get sick?

Science Trivia: When was it discovered that bacteria and viruses can get sick?