According to the CDC, washing your hands with soap and water for at least 20 seconds is the best method for killing bacteria and preventing the spread of infections. If soap and water are not readily available, using hand sanitizer with at least 60% alcohol can also be effective.