Bacteria can overcome environmental challenges by killing nearby bacteria and incorporating their DNA.