Pathogens such as bacteria and viruses cause infectious diseases by reproducing rapidly inside the body and either producing toxins or damaging cells, making the infected person feel ill. Semmelweis recognized the importance of hand-washing in hospitals to prevent the spread of pathogens between patients and the transmission of infectious diseases. Bacteria and viruses are microorganisms that can reproduce inside the body and cause illness.