Soap itself doesn't kill bacteria and viruses, but it helps to remove them from the skin or surfaces, reducing the risk of infection.